Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

        int main()
        {
            int x = 2, y = 1;
            x *= x + y;
            printf("%d\n", x);
            return 0;
        }
  2. A.
    5
    B.
    6
    C.
    Undefined behaviour
    D.
    Compile time error

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    None.


Be The First To Comment