C Data Types 2 Questions and Answers
Practice ModeShowing 10 of 159 questions
Q21
Which of the following is a valid character constant.
Answer: Option D
Q22
When a type modifer is used by itself then it is assumped to be a type
Answer: Option C
Q23
What is the format specifier of long double ?
Answer: Option C
Q24
Find the output
'void main ( )
{
printf ("%d", (long double *) 200+1);
}
Answer: Option D
Q25
Find the output
void main ( )
{
printf ("%%d", 5);
}
Answer: Option C
Q26
Find the output.
void main ( )
{
char x=-130;
char y=-5;
printf ("%i", x+y);
}
Answer: Option D
Q27
In a 16-bit O.S. every negative integer is stored in memory in the form of
Answer: Option A
Q28
Find the output
void main ( )
{
unsigned int x=500;
int y=-5;
if (x>y);
printf ("hello");
else
printf ("hi");
}
Answer: Option A
Q29
Find the output
void main ( )
{
double y=2.4;
float x=(float) y;
printf ("%d%d", sizeof (x), sizeof (y));
}
Answer: Option B
Q30
Find the output
void man ( )
{
unsigned char x=200;
char y=140;
printf (%d", x+y);
}
Answer: Option B