☰
×
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
« Prev
Next »
C Data Types Interview Questions
Program 1 #include
main() { int x=257, y=256; char ch=x, ch1=y; printf("%d %d\n",ch, ch1); } Program 2 #include
main() { printf("%d\n",printf("%d",5764557)); printf("%d\n",printf("tips""traps")); } Program 3 #include
main() { printf("%d %d \n",4.5, 8); } Program 4 main() { enum {x=32767,y}; printf("%d %d\n",x,y); } Program 5 main() { printf("%d\n",(long double*)200+1); } Program 6 #include
main() { printf("%%d\n",5); } Program 7 main() { char x=-130; char y=-5; printf("%i\n",x+y); printf("%d\n",x+y); } Program 8 main() { unsigned int x=500; int y=-5; if(x>=y) printf("hello\n"); else printf("hai\n"); } Program 9 main() { double y=2.4; float x=y; //float x=y; printf("%d %d\n",sizeof(x),sizeof(y)); } Program 10 main() { unsigned char x=200; char y=140; printf("%d\n",x+y); } Program 11 main() { printf("%d\n",sizeof(5.3)); } Program 12 #include
main() { printf("sureshefaculty\t\rchennai"); printf("\n sateeshkumarg\t\motionzen\n"); } Program 13 #include
main() { char s='A'; char a='a'; printf("%d\n",s-a); } Program 14 main() { int a=6,b=8,c; c=a,a=b,b=c; printf("%d %d\n",a,b); } Program 15 #include
main() { signed short int x=9; if((x & INT_MIN)==INT_MIN) printf("Negative\n"); else printf("Positive\n"); } Program 16 #include
main() { /*int x=9; float f=(float)x/2; printf("%f\n",f);*/ float f=5.5; printf("%d\n",f); } Program 17 main() { int x=266; printf("%0x\n",x); } Program 18 main() { int x=0378; printf("%x\n",x); } Program 19 main() { printf("ab/*cd*/ef\n"); } Program 20 main() { int a=1,b; b=+-+a+-a; printf("%d\n",b); }
« 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