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
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.
Char *foo(){char result[100]);strcpy(result,"anything is good");return(result);}void main(){char *j;j=foo()printf("%s",j);}
anything is good.
Void main(){char *s[]={ "dharma"," hewlett-packard","siemens","ibm"};char **p;p=s;printf("%s",++*p);printf("%s",*p++);printf("%s",++*p);}
"harma" (p->add(dharma) && (*p)->harma)"harma" (after printing, p->add(hewlett-packard) &&(*p)->harma)"ewlett-packard"