By default a real number is treated as a

Home | Discussion Forum

Free Online Test

Taiyari24Hour

By default a real number is treated as a



View More Related Question

1) What is short int in C programming?

2) Integral data type is _________?

3) What will be the output of the following C code?

 #include <stdio.h>
int main()
{
float f1 = 0.1;
if (f1 == 0.1)
printf("equal\n");
else
printf("not equal\n");
}

4) 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;
}

5) Which is correct with respect to size of the datatypes?

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.