Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. Comment on the output of this C code?

        void main()
        {
            float x = 0.1;
            printf("%d, ", x);
            printf("%f", x);
        }
  2. A.
    0.100000, junk value
    B.
    junk value, 0.100000
    C.
    0, 0.100000
    D.
    0, 0.999999

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    None.


Be The First To Comment