☰
×
Home
◈ Introduction
C - Data Types IQ
◈ C Data Type Tricky - I
◈ C Data Type Tricky - II
◈ C Data Type Tricky - III
◈ C Data Type Tricky - IV
◈ C Data Type Tricky - V
C - Operators IQ
◈ C Operators Tricky - I
◈ C Operators Tricky - II
◈ C Operators Tricky - III
Choose the Correct
◈ Choose the Correct Ans - I
◈ Choose the Correct Ans- II
◈ Choose the Correct Ans - III
◈ Choose the Correct Ans - IV
◈ Choose the Correct Ans - V
◈ Choose the Correct Ans - VI
Find Output - Tricky
◈ C Pgm Tricky Questions I
◈ C Pgm Tricky Questions II
◈ C Pgm Tricky Questions III
◈ C Pgm Tricky Questions IV
◈ C Pgm Tricky Questions V
◈ C Pgm Tricky Questions VI
◈ C Pgm Tricky Questions VII
◈ C Pgm Tricky Questions VIII
◈ C Pgm Tricky Questions IX
C - General IQ
◈ General C Questions I
◈ General C Questions II
◈ General C Questions III
◈ General C Questions IV
◈ General C Questions V
◈ General C Questions VI
◈ General C Questions VII
Home
About
Consulting
Training
Tutorial
Interview Questions
Contact
Interview Questions
C Programming - Data Types
Home
C Interview Questions
◈ Introduction
C Data Types Tricky Questions
◈ C Data Type Tricky Questions I
◈ C Data Type Tricky Questions II
◈ C Data Type Tricky Questions III
◈ C Data Type Tricky Questions IV
◈ C Data Type Tricky Questions V
C Operators Interview Questions
◈ C Operators Tricky Questions I
◈ C Operators Tricky Questions II
◈ C Operators Tricky Questions III
Choose the Correct Answer
◈ Choose the Correct Answer I
◈ Choose the Correct Answer II
◈ Choose the Correct Answer III
◈ Choose the Correct Answer IV
◈ Choose the Correct Answer V
◈ Choose the Correct Answer VI
Find Output - Tricky C Program
◈ C Programs Tricky Questions I
◈ C Programs Tricky Questions II
◈ C Programs Tricky Questions III
◈ C Programs Tricky Questions IV
◈ C Programs Tricky Questions V
◈ C Programs Tricky Questions VI
◈ C Programs Tricky Questions VII
◈ C Programs Tricky Questions VIII
◈ C Programs Tricky Questions IX
General C Interview Questions
◈ General C Questions I
◈ General C Questions II
◈ General C Questions III
◈ General C Questions IV
◈ General C Questions V
◈ General C Questions VI
◈ General C Questions VII
C Programming Interview Questions
C - Data Types IV
« Prev
Next »
C Data Types Interview Questions
Program 61 main() { printf("%d\n",sizeof(!5.0)); } Program 62 main() { char i=1; for(i;i<127;i++) printf("fool i=%d\n",i); } Program 63 main() { int x=32768; printf("%d %u\n",x,x); } Program 64 main() { unsigned int a=6; ~a; printf("%u\n",a); printf("%d\n",a); } Program 65 main() { int ch=48; if(ch) { printf("valid\n"); break; printf("ok\n"); } else printf("invalid\n"); } Program 66 main() { int a:15; char b:7; printf("%d %d\n",sizeof(a),sizeof(b)); } Program 67 main() { const int x=get(); printf("%d\n",x); } get() { return(20); } Program 68 main() { printf("%d %d\n",85000); } Program 69 main() { int a=b=2; printf("%d %d\n",a++,++b); } Program 70 main() { int a=1; char b=2; double c; int d; printf("%d\n",sizeof(d=a+b)); printf("%d\n",sizeof(b+c+a)); printf("%d\n",d); } Program 71 main() { int a; char b; double c; printf("%s\n","heeelo"+4); printf("%d\n",sizeof("heelo"+sizeof(b+c))); } Program 72 #include
main() { int x=256; if(*(char *)&x==255) printf("little enidian\n"); else printf("big enidian\n"); } Program 73 main() { printf("%d\n",~1^~0); } Program 74 main() { int x=4; printf("%d\n",printf("%d%d",x+1,x)); } Program 75 main() { int x=-5u; int y=5; y=y>x?y/x:x/y; printf("%u\n",y); } Program 76 main() { int i=17; printf("%dceg"+1,i)+1; } Program 77 main() { //short int val=0xffff; //int val=0xffff; unsigned val=0xffff; if(~val) printf("%d\n",val); printf("%d\n",~val); } Program 78 main() { char c=65; //c=(c!=c); c=(!=c); printf("%d\n",c); } Program 79 main() { char not=65; not=not+(not=!not); printf("%d\n",not); } Program 80 main() { char p[]="%d\n"; p[1]='c'; printf("%s\n",p,65); }
« Prev
Next »
Helpful Links
Sateeshkg Home
Interview Questions
Corporate Training
Recommended Books
Linux Consulting
Apply for Job Assistance
If you have any queries please email us at
info@motionzen.com