Home / C Programming / Control Structures :: Discussion

Discussion :: Control Structures

  1. What is the output of the following statements?

    for(i=10; i++; i<15)

    printf("%d ", i);

  2. A.

     10 11 12 13 14

    B.

     10 11 12 13 14 15

    C.

     9 10 11 12 13

    D.

     Infinite loop

    E.

     None of these

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    Since the condition is always true it will go to infinite loop.


Be The First To Comment