Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
c Questions

c Questions

Ratings: (0)|Views: 306|Likes:
Published by Puspala Manojkumar

More info:

Published by: Puspala Manojkumar on Sep 17, 2010
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less





Predict the output or error(s) for the following:1.void main(){int const * p=5; printf("%d",++(*p));}a .compiler error b.5 c.6 d.none2.main(){float me = 1.1;double you = 1.1;if(me==you) printf("sita");else printf("geetha");}a.sita b.geetha c.error d.none3. main(){static int var = 5; printf("%d ",var--);if(var)main();}a.5 4 3 2 1 b.4 3 2 1 c. 4 d.none4. main(){extern int i;i=20; printf("%d",i);}a.compiler error b.runtime error c.linker error d.20
main(){char *p; printf("%d %d ",sizeof(*p),sizeof(p));}a.1 2 b.2 1 c.1 1 d.2 26. main(){int i=3;switch(i){default:printf("zero");case 1: printf("one"); break;case 2:printf("two"); break;case 3: printf("three"); break;}}a.1 b.2 c.3 d.07. main(){int c= --2; printf("c=%d",c);}a.2 b.1 c.error d, n8
main(){ printf("%p",main);}a. b. c. d.
 9. main(){int i=400,j=300; printf("%d..%d");}a.400 300 b. 300 400 c. 400..300 d.none10. void main(){int i=5; printf("%d",i+++++i);}a.linker error b.compiler error c.6 d.1011. #include<stdio.h>main(){int i=1,j=2;switch(i){case 1: printf("GOOD"); break;case j: printf("BAD"); break;}}a. GOOD b. BAD c.compiler error d.linker error 12. main(){int i=-1;+i; printf("i = %d, +i = %d \n",i,+i);}a. ±1,1 b. ±1,0 c. ±1,-1 d.1,-113. main(){main();}a. runtime error b. stack overflow c.both a&b d.none

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->