Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is output of code given below?


        int main()

        {

            int i = 0, j = 0;

           while (i < 2)

            {

                l1 : i++;

                while (j < 3)

                {

                    printf("Loop\n");

                    goto l1;

                }

            }

        }

  2. A.
    Loop Loop
    B.
    Compilation error
    C.
    Loop  Loop  Loop  Loop
    D.
    Infinite Loop

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    none


Be The First To Comment