What is the size of an int data type?

Home | Discussion Forum

Free Online Test

Taiyari24Hour

What is the size of an int data type?



View More Related Question

1) Predict the output of following C program

 #include <stdio.h>
int main()
{
char a = '12';
printf("%d", a);
return 0;
}

2) Predict the output

 #include <stdio.h>
int main()
{
float c = 5.0;
printf ("Temperature in Fahrenheit is %.2f", (9/5)*c + 32);
return 0;
}

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

 #include <stdio.h>
int main()
{
float x = 'a';
printf("%f", x);
return 0;
}

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

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

5) What is the output of this C code?

#include  
int main()
{
signed char chr;
chr = 128;
printf(

UP Gk Online Test

taiyari24hour.com

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