☰
×
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 V
« Prev
Next »
C Data Types Interview Questions
Program 81 main() { unsigned int i; for(i=1;i>-2;i--) printf("a"); } Program 82 main() { signed char i=1; for(;i>0;i++); printf("%d",i); } Program 83 #define sizeof(int) 3 #define float int main() { float a; if(a=sizeof(int)/sizeof(float)) if(a==1.000000) printf("Testing\n"); printf("OK\n"); } Program 84 main() { int a=256; char *p=&a; *++p=2; printf("%d\n",a); } Program 85 main() { char ch='A'; ch=-100-91; printf("%c\n",ch); } Program 86 main() { char acc='8'; int ltd=8; printf("%d %d %d\n",ltd,ltd+=acc>='0'&&acc<='9',acc++); } Program 87 main() { int me=9,you=1; printf("%d\n",(me+you)++); } Program 88 unsigned bit(unsigned ha,int hi,int hu) { return (ha>>(hi+1-hu))&~(~0<
int i=40000; main() { printf("%ld\n",i); } Program 93 main() { printf("%d\n",4>>256); } Program 94 main() { int i=3,j=2,k=1; printf("%d/%d"); } Program 95 main() { int i=1; float f=2.25; scanf("%d a %f",&i,&f); printf("%d %.2f\n",i,f); } Program 96 main() { float x=3.2; float y=2.2; printf("%.2f\n",x/y); printf("%g\n",x/y); } Program 97 main() { int x=0; printf(x+"YUnilakshya%d\n",x=1); } Program 98 main() { float x,y; x=4.231; y=(int)x/2.0; //y=x/2.0; printf("%f\n",y); } Program 99 main() { int a=0150,b=057,c; c=a+b; printf("%d %o\n",c,c); } Program 100 main() { int i=49; printf("%d %p\n",i,i); } Program 101 main() { int a=0x100; int b=0x100; int c=a*b; printf("%x %d\n",c,c); } Program 102 main() { int a="%d"; printf("%d\n",a); }
« 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