Examveda

What will be the output of the following C code?
#include <stdio.h>
void main()
{
    float x = 0.1;
    printf("%d, ", x);
    printf("%f", x);
}

A. 0.100000, junk value

B. Junk value, 0.100000

C. 0, 0.100000

D. 0, 0.999999

Answer: Option B


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals