Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

        void main()
        {
            int a = 5;
            int b = ++a + a++ + --a;
            printf("Value of b is %d", b);
        }

  2. A.
    Value of x is 16
    B.
    Value of x is 21
    C.
    Value of x is 15
    D.
    Undefined behaviour

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    None.


Be The First To Comment