Determine Output:void main(){ printf("%p", main);} None of These Error Some address will be printed make an infinite loop TRUE ANSWER : ? YOUR ANSWER : ?
#include<stdio.h>void main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);} 11, 10 10, 10 11, 11 10, 11 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is correct way to define the function fun() in the below program?#include<stdio.h>void main(){ int a[3][4]; fun(a);} void fun(int p[][4]){} void fun(int *p[4]){} void fun(int *p[3][4]){} void fun(int *p[][4]){} None of these TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of given program?#include<stdio.h>void main(){int a=1;if("%d=hello", a);} complier error 1 0 no error no output TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following operator takes only integer operands? % + None of these / * TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char a[]="12345"; int i = strlen(a); printf("%d", ++i);} 5 7 None of These 6 TRUE ANSWER : ? YOUR ANSWER : ?
What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);} will print Hello World Compilation Error will print garbage value None of these. TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:#include <stdio.h>void main(){ char *p = NULL; char *q = 0; if(p) printf(" p "); else printf("nullp"); if(q) printf("q"); else printf(" nullq");} p q nullp nullq x nullq where x can be p or nullp depending on the value of NULL Depends on the compiler TRUE ANSWER : ? YOUR ANSWER : ?
What is the difference between a declaration and a definition of a variable? Both can occur multiple times, but a declaration must occur first. There is no difference between them. A declaration occurs once, but a definition may occur many times. Both can occur multiple times, but a definition must occur first. A definition occurs once, but a declaration may occur many times. TRUE ANSWER : ? YOUR ANSWER : ?
The recursive functions are executed in a ........... First In First Out order Parallel order Random order Last In First Out order Iterative order TRUE ANSWER : ? YOUR ANSWER : ?