Home / C Programming / Operators and Expressions :: Discussion

Discussion :: Operators and Expressions

  1. Find the output of the following program.

    #include<stdio.h>

    void main()

    {

    int y=10;

    if(y++>9 && y++!=11 && y++>11)

    printf("%d", y);

    else

    printf("%d", y);

    }

  2. A.

     11

    B.

     12

    C.

     13

    D.

     14

    E.

     Compilation error

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    Since the second condition is false so, further conditions will not be checked, it will be skipped.


Be The First To Comment