C Data Types 2 Questions and Answers
Practice ModeShowing 10 of 159 questions
Q101
Find the output
void main ( )
{
enum values (x, y, z);
printf (%d %d %d", x++, y++, ++z);
}
Answer: Option D
Q102
The synonym for an existing data type can be created using
Answer: Option A
Q103
Find the output
void main ( )
{
int x=345, r, sum=0, i;
if x!=0)
{
r=x%10;
sum+=r;
i=i/10;
}
printf ("%d", sum);
}
Answer: Option A
Q104
Find the output
void main ( )
{
int x=-300;
unsigned char *p;
p=&x;
printf ("%d", *p++);
printf("%d", *p);
}
Answer: Option B
Q105
Find the output
void main ( )
{
float f;
f=5/2;
printf("%F %f", f, 5/2);
}
Answer: Option C
Q106
Find the output
void main ( )
{
int p=7, q=9;
p=p^q;
q=q^p;
printf("%d %d", p,q);
}
Answer: Option D
Q107
Find the output
void main ( )
{
int x=65536, y;
y=sizeof (++x);
printf("%d %d', x,y);
}
Answer: Option A
Q108
Find the output
void main ( )
{
long i=60000+5536;
printf("%d->%d", i)
}
Answer: Option C
Q109
Find the output
void main ( )
{
printf("%d', sizeof (!5.0));
}
Answer: Option B
Q110
Find the output.
void main ( )
char i=1;
for (i;i<127;i++)
printf("Fll1");
}
Answer: Option B