Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?


        void main()

        {

            int i = 0;

            int j = 0;

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

            {

                for (j = 0;j < 4; j++)

                {

                    if (i > 1)

                        continue;

                        printf("Hi \n");

                }

            }

        }

  2. A.
    Hi is printed 9 times
    B.
    Hi is printed 8 times
    C.
    Hi is printed 7 times
    D.
    Hi is printed 6 times

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    none


Be The First To Comment