Home / C Programming / Operators and Expressions :: Discussion

Discussion :: Operators and Expressions

  1. Determine output of the following program code.

    #include<stdio.h>

    void main()

    {

    int a, b=7;

    a = b<4 ? b<<1 : ++b>4 ? 7>>1 : a;

    printf("%d %d", a, b);

    }

  2. A.

     3 7

    B.

     7 3

    C.

     8 3

    D.

     3 8

    E.

     None of these

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    Explanation Not Provided


Be The First To Comment