☰
×
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 III
« Prev
Next »
C Data Types Interview Questions
Program 41 #include
main() { int i=printf("\lakshya"); printf("%d\n",i); } Program 42 main() { typedef char int;// 2 datatypes not possible typedef int interp; int x='a',y='1'; printf("%d\n",x+y); } Program 43 main() { int x=0xA; int y=012; int z=10; if(x==y==z) printf("mystery\n"); else printf("shocked\n"); } Program 44 main() { int x=5,y=3; x=x+~y+1; printf("%d\n",x); } Program 45 main() { int x; x=printf("lak\\rshya"); printf("%d\n",x); } Program 46 main() { printf("%f\n",9/5); } Program 47 main() { float x=3.2; float y=2.2; printf("%.2f\n",x/y); printf("%.4f\n",x/y); } Program 48 main() { int x=1; if(x++>=x) printf("%d\n",x); else printf("%d\n",++x); } Program 49 main() { char x,y; printf("%d\n",scanf("%c%c",&x,&y)); printf("%c %c",x,y); } Program 50 main() { int a=9; char c; c=2*20.5+a; printf("%c\n",c); printf("%d\n",c); } Program 51 main() { unsigned int i=65535; printf("%d\n",i++ + ++i); } Program 52 main() { enum color{red,green}; enum colors{green,white}; printf("%d %d\n",green,white); } Program 53 main() { char ch='\356'; printf("%d %c\n",ch,ch); } Program 54 main() { enum value{x,y,z}; printf("%d %d %d\n",x++,y++,++z); } Program 55 main() { int x=345,r,sum=0,i; if(x!=0) { r=x%10; sum+=r; i=i/10; } printf("%d\n",sum); } Program 56 main() { int x=-300; unsigned char *p; p=&x; printf("%d\n",*p++); printf("%d\n",*p); } Program 57 main() { float f; f=5/2; printf("%f %f\n",f,5/2); } Program 58 main() { int p=7,q=9; p=p^q; q=q^p; printf("%d %d\n",p,q); } Program 59 main() { int x=65536,y; y=sizeof(++x); printf("%d %d\n",x,y); } Program 60 main() { long i=60000+5536; printf("%d->%d\n",i); }
« 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