Undefined
Give the output of the programvoid main(){int i;for(i=1;i<4,i++)switch(i)case 1: printf("%d",i);break;{case 2:printf("%d",i);break;case 3:printf("%d",i);break;}switch(i) case 4:printf("%d",i);}
1,2,3,4
Give the output of the programvoid main(){char *s="12345sn";printf("%d",sizeof(s));}
6
Give the output of the programvoid main(){unsigned i=1; /* unsigned char k= -1 => k=255; */signed j=-1; /* char k= -1 => k=65535 *//* unsigned or signed int k= -1 =>k=65535 */if(ij)printf("greater");elseif(i==j)printf("equal");}
less
D
How do you declare an array of N pointers to functions returningpointers to functions returning pointers to characters?A. char *(*(*a[N])())();B. Build the declaration up incrementally, using typedefs:C. Use the cdecl program, which turns English into C and viceversa:D. All of the above.
D
A structure pointer is defined of the type time. With 3 fields min, sec hours having pointers to integers.Write the way to initialize the 2nd element to 10.
QUESTION 8In the above question an array of pointers is declared.Write the statement to initialize the 3rd element of the 2 element to 10;
The number of syntax errors in the program?int f()void main(){f(1);f(1,2);f(1,2,3);}f(int i,int j,int k){printf("%d %d %d",i,j,k);}
None.
56QUESTION 11#define one 0#ifdef oneprintf("one is defined ");#ifndef oneprintf("one is not defined ");
Void main(){int count=10,*temp,sum=0;temp=&count;*temp=20;temp=∑*temp=count;printf("%d %d %d ",count,*temp,sum);}
20; 20; 20;
View page [1] 2 Next >>

Go Top