Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?


        int main()

        {

            int i = 0;

            do

            {

                i++;

                if (i == 2)

                    continue;

                    printf("In while loop ");

            } while (i < 2);

            printf("%d\n", i);

        }

  2. A.
    In while loop 2
    B.
    In while loop In while loop 3
    C.
    In while loop 3
    D.
    Infinite loop

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    none


Be The First To Comment