Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?


        void main()

        {

            int i = 0;

            for (i = 0;i < 5; i++)

                if (i < 4)

                {

                    printf("Hello");

                    break;

                }

        }

  2. A.
    Hello is printed 5 times
    B.
    Hello is printed 4 times
    C.
    Hello
    D.
    Hello is printed 3 times

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    none


Be The First To Comment