Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. 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);
        }

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

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    None.


Be The First To Comment