C Programming Language – 17

In c language, what will be the output of the following statements ? int i = 1, j; j=i----2; printf("%d",j);

Correct! Wrong!

In c language, what will be the output of following program ? #include main(){ int x,y = 10;x = y * NULL; printf("%d",x); }

Correct! Wrong!

In c language, what will be the output of following statements : char x[ ] = "hello hi"; printf("%d%d",sizeof(*x),sizeof(x));

Correct! Wrong!

In c language, what will be the output of the following statements : int a=5, b=6, c=9 ,d; d=(ac?1:2):(c>b?6:8)); printf("%d",d);

Correct! Wrong!

In c language, What will be the output of the following statements: int i = 3; printf("%d%d",i,i++);

Correct! Wrong!

In c language, what will be the output of the following program : #includevoid main(){ int a = 36, b = 9; printf("%d",a>>a/b-2); }

Correct! Wrong!

In c language, int testarray[3][2][2] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; What valuedoes testarray[2][1][0] in the sample code above contain?

Correct! Wrong!

In c language, what will be the output void main(){ int a=10, b=20; char x=1,y=0; if(a,b,x,y){ printf("EXAM"); } }

Correct! Wrong!

In c language, what is the output of the following code: #includevoid main(){ int s=0; while(s++ # define a 10 main(){ printf("%d..",a); foo(); printf("%d",a); } void foo(){ #undef a #define a 50 }

Correct! Wrong!

IN c language, what is the output of this program: main(){ struct{int i;} xyz; (*xyz)->i=10; printf("%d",xyz.i); }

Correct! Wrong!

C Programming Language – 16

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.