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
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;
321
Char *foo(){char result[100]);strcpy(result,"anything is good");return(result);}void main(){char *j;j=foo()printf("%s",j);}
anything is good.