Vidyalelo
C Programming · Q221

C Fundamentals

Programming · C Programming · question 221

Q221

What will be the output of the following C code? #include void main() float x = 0.1; printf("%d, ", x); printf("%f", x);

A.
0.100000, junk value
B.
Junk value, 0.100000
Answer
C.
0, 0.100000
D.
0, 0.999999

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board