C Language MCQ - English
By default a real number is treated as a
Home | Discussion ForumBy default a real number is treated as a
float
double
long double
far double
Answer : B
Free Online Test
View More Related Question
1) What will be the output of the following C code on a 32-bit machine? #include <stdio.h>
int main()
{
int x = 10000;
double y = 56;
int *p = &x;
double *q = &y;
printf("p and q are %d and %d", sizeof(p), sizeof(q));
return 0;
}
2) What will be the output of the following C code? #include <stdio.h>
int main()
{
float x = 'a';
printf("%f", x);
return 0;
}
3) The maximum value that an integer constant can have is:
4) Range of unsigned int is?
5) For 16-bit compiler allowable range for integer constants is ________?