Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. Comment on the output of this C code?

        int main()
        {
            int i = 2;
            int i = i++ + i;
            printf("%d\n", i);
        }
  2. A.
    = operator is not a sequence point
    B.
    ++ operator may return value with or without side effects
    C.
    it can be evaluated as (i++)+i or i+(++i)
    D.
    Both a and b

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    None.


Be The First To Comment