CSE MCQs :: C-MCQs
- %f access specifier is used for?
-
What is the output of this C code?
int main()
{
float a = 5.477777777777;
printf("%f", a);
} -
Which data type is suitable for storing a number like?
10.0000000001 -
Predict the data type of the following mathematical operation?
12 * 7 + 5 / 2 . 0 -
What is the output of this C code?
void main()
{
float x = 0.1;
if (x == 0.1)
printf("Sanfoundry");
else
printf("Advanced C Classes");
} -
Comment on the output of this C code?
void main()
{
float x = 0.1;
printf("%d, ", x);
printf("%f", x);
}