C Data Types 2 Questions and Answers
Practice ModeShowing 10 of 159 questions
Q71
Find the output.
void main ( )
{
int x=12;
int y=16;
printf ("%hx %dx", x,y);
}
Answer: Option A
Q72
Find the output
vid main ( )
{
double d=2 . 4;
printf ("%g", d);
}
Answer: Option A
Q73
Find the output
void main ( )
{
typedef int float;
float x=4.7;
printf ("%d", sizeof (x));
}
Answer: Option C
Q74
The synonym for an existing data type created by typedef reserves memory of
Answer: Option C
Q75
Find the output
extern int x;
void main ( )
{
typedef int myint;
myint x;
printf ("%d", x);
}
Answer: Option B
Q76
Find the output
void main ( )
{
unsigned enum color
{ red='0', green=0, blue}'
printf (%d %d %d", red, green, blue);
}
Answer: Option D
Q77
Find the output
void main ( )
{
char c='\ci';
printf ("%c", c);
}
Answer: Option C
Q78
Find the output
void main ( )
{
int a=b=c=10;
printf("%d %d %d", a, b, c);
}
Answer: Option D
Q79
Real constant in C can be expressed in which off the following forms
Answer: Option D
Q80
the maximum index in an int array in Turbo c 3.0 is
Answer: Option B