Single Choice Not Set

Q Comment on the output of this C code?
    int main()
    {
        int i = 2;
        int i = i++ + i;
        printf("%d\n", i);
    }

ID: #1258 Operators and Enums in C Language 1,200 views
Question Info
#1258Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • 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
Correct Answer

Explanation

Option A

Share This Question

Challenge a friend or share with your study group.