Sail E0 Webinar
Question

What is the output of this C code?    void main()    {        double x = 123828749.66;        int y = x;        printf("%d\n", y);        printf("%lf\n", y);    }

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


None.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers