Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?


        int main()

        {

            int i = 0, j = 0;

           while (i < 5, j < 10)

            {

                i++;

                j++;

           }

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

        }

  2. A.
    5, 5
    B.
    5, 10
    C.
    10, 10
    D.
    Syntax error

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    none


Be The First To Comment