Home / C Programming / Control Structures :: Discussion

Discussion :: Control Structures

  1. What will be printed if the following code is executed?

    void main()

    {

    int x=0;

    for( ; ; )

    {

    if( x++ == 4 ) break;

    continue;

    }

    printf("x=%d", x);

    }

  2. A.

     x=0

    B.

     x=5

    C.

     x=4

    D.

     x=1

    E.

     Error

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    Explanation Not Provided


Be The First To Comment