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("Hello");

        }

  2. A.
    Run time error
    B.
    Hello is printed thrice
    C.
    Hello is printed twice
    D.
    Hello is printed infinitely

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    none


Be The First To Comment