Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

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

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    None.


Be The First To Comment