void main()
{
int a=10,b=20;
char x=1,y=0;
if(a,b,x,y)
{
printf("EXAM");
}
}
What is the output?
XAM is printed
exam is printed
Compiler Error
Nothing is printed
#include
void main()
{
char letter =`Z`;
printf("
%c",letter);
}
Z
90
Garbage value
Error
Array passed as an argument to a function is interpreted as
Address of the array
Values of the first elements of the array
Address of the first element of the array
Number of element of the array
main()
{
char thought[2][30]={"Don`t walk in front of me..","I am not follow"};
printf("%c%c",*(thought[0] 9),*(*(thought 0) 5));
}
What is the output of this program?
k k
int **array2 = (int **)malloc(nrows * sizeof(int *));
Don`t walk in front of me
I may not follow
K
What is the output of the following code?
# include
# define a 10
main()
{
printf("%d..",a);
foo();
printf("%d",a);
}
void foo()
{
#undef a
#define a 50
}
10..10
10..50
Error
0