Home / C Programming / Operators and Expressions :: Discussion

Discussion :: Operators and Expressions

  1. Consider the following program fragment, and choose the correct one

    void main()

    {

    int a, b = 2, c;

    a = 2 * (b++);

    c = 2 * (++b);

    }

  2. A.

     a = 4, c = 8

    B.

     a = 3, c = 8

    C.

     b = 3, c = 6

    D.

     a = 4, c = 6

    E.

     b = 4, c = 6

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Explanation Not Provided


Be The First To Comment