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);
}
#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
Join The Discussion