Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?


        int main()

        {

           int i = 0;

            for (i++; i == 1; i = 2)

                printf("In for loop ");

                printf("After loop\n");

        }

  2. A.
    In for loop after loop
    B.
    After loop
    C.
    Compile time error
    D.
    Undefined behaviour

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    none


Be The First To Comment