C Data Types 2 Questions and Answers
Practice ModeShowing 10 of 159 questions
Q121
The number of bytes of storage occupied by short, int and long int are
Answer: Option D
Q122
Find the output
void main ( )
{
int a;
char b;
float c;
printf ("%d", sizeof (a+sizeof(b+c))));
}
Answer: Option A
Q123
Find the output
int main (void)
{
int x=256;
if(*(char *) &x = =255
{
printf(Little Endian\n");
}
return 0;
}
Answer: Option A
Q124
Find the output.
void main ( )
[
printf ("%d",~1^~0);
}
Answer: Option B
Q125
Find the output.
int main ( )
{
unsigned val=0xabcd;
if(va>>16|val<<16)
{
printf ("success"));
}
return exit (0);
printf ("Failure");
}
Answer: Option A
Q126
Find the output.
void main ( )
{
int x=4;
printf("%d",printf ("%d%d", x+1, x));
}
Answer: Option C
Q127
Find the output.
void main ( )
{
int x=-5u;
int y=5;
y=y>x?y/x:x/y;
printf("%u", y);
}
Answer: Option C
Q128
Find the output.
void main ( )
{
int i=5;
prntf ("%dcef"+1, i) +1;
}
Answer: Option C
Q129
Find the output.
void main ( )
{
unsigned val=0xfff;
if(~val)
printer ("%d", val);
printf ("%d", ~val);
}
Answer: Option C
Q130
When a tab key is pressed how much memory is reserved for it?
Answer: Option A