what will be the output of the following question?
main()
{
char far *s1,*s2;
printf("%d%d",sizeof(s1),sizeof(s2));
}
point out the error , if any, in the while loop.
main()
{
int i=1;
while()
{
printf("%d",i++);
if(i>10)
break;
}
}
are the following two statements same?
a<=20?b=30:c=30;
(a<=20)?b:c=30;
what would be the output of the following?
main()
{
printf("%f",sqrt(36.0));
}
how many times the following program would print 'sana'?
main()
{
printf("\nsana");
main();
}
what would be the output ?
#define SQR(x) (x*x)
main()
{
int a,b=3;
a=SQR(b+2);
printf("\n%d",a);
}
what would be the output of the program?
main()
{
int arr[]={12,13,14,15,16};
printf("\n%d%d%d",sizeof(arr),sizeof(*arr),sizeof(arr[0]));
}
what would be the output of the following?
main()
{
struct a
{
category:5;
scheme:4;
};
printf("size=%d",sizeof(struct a));
}