Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

        int main()
        {
            int a = 1, b = 2;
            a += b -= a;
            printf("%d %d", a, b);
        }
  2. A.
    1   1
    B.
    1   2
    C.
    2   1
    D.
    2   2

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    None.


Be The First To Comment