Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?


       void main()

        {

            double k = 0;

            for (k = 0.0; k < 3.0; k++);

                printf("%lf", k);

       }

  2. A.
    2.000000
    B.
    4.000000
    C.
    3.000000
    D.
    Run time error

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    none


Be The First To Comment