Vidyalelo
C Programming · Q158

C Fundamentals

Programming · C Programming · question 158

Q158

What will be the output of the following C code? #include void main() double x = 123828749.66; int y = x; printf("%d ", y); printf("%lf ", y);

A.
0, 0.0
B.
123828749, 123828749.66
C.
12382874, 12382874.0
D.
123828749, 0.000000
Answer

Answer: Option D

Solution

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