Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?


        void main()

        {

            int k = 0;

            for (k < 3; k++)

            printf("Hello");

        }

  2. A.
    Compile time error
    B.
    Hello is printed thrice
    C.
    Nothing
    D.
    Varies

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    none


Be The First To Comment