C Data Types 2 Questions and Answers
Practice ModeShowing 10 of 159 questions
Q61
Find theoutput.
void main ( )
{
float f=3.2;
double d=3.2;
if (f==d)
printf ("equal");
else printf ("not equal ");
}
Answer: Option B
Q62
Find theoutput.
void main ( )
{
int x=0xFFFB;
printf(%d", x)
}
Answer: Option B
Q63
Find the output.
void main ( )
{
printf ("%d %d %d", 40000, 40. 4);
}
Answer: Option B
Q64
In LINUX each memory variable's real address is
Answer: Option C
Q65
Find the output
void main ( )
{
char x=-49;
printf ("%c", ~x);
}
Answer: Option C
Q66
Find the output
extern char s="\dx';
void main ( )
{
printf ("%c", s);
}
Answer: Option B
Q67
If there are 32 segments, each of size 1k bytes, then the logical address should have
Answer: Option C
Q68
Find the output
char s;
void main ( )
{
s='a';
{
static char s='b';
printf (%c", s);
}
Answer: Option A
Q69
Integer division results in
Answer: Option A
Q70
Find the output.
void main ( )
{
int x=-350u;
char y=-145u;
printf ("%u", x+=y);
}
Answer: Option A