Wednesday, 24 October 2012

C programming Quiz 16-20

C programming Quiz 16-20



Quiz 16:
main()
{
float a = 0.7;
if (a < 0.7) printf ("C"); else printf("C++"); }



Quiz 17:
main()
{
char near * near *ptr1;
char near * far *ptr2;
char near * huge *ptr3;
printf("%d %d %d",sizeof(ptr1),sizeof(ptr2),sizeof(ptr3));
}


Quiz 18:
main( ) {
int z = 4;
printf( “%d”, printf(“ %d %d “, z, z)); }


Quiz 9:
int main()
{
int x,a=2;
x=++a,++a,a++;
printf("%d %d",x,a);
return 0;
}



Quiz 20:
program1::
main()
{int i=4,x;
x=++i + ++i + ++i;
printf("%d",x);
}

program2::
main()
{
int i=4;
printf("%d",++i + ++i + ++i);
}



In case of any explanation kindly comment!

DON'T FORGET TO JOIN THIS BLOG.. SHARE IT WITH YOUR FRIEND!

No comments:

Post a Comment