Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

        int main()
        {
            int x = 2, y = 2;
            x /= x / y;
            printf("%d\n", x);
            return 0;
        }
  2. A.
    2
    B.
    1
    C.
    0.5
    D.
    Undefined behaviour

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    None.


Be The First To Comment