Single Choice Not Set

QWhat is the output of this C code?
    int main()
    {
        int a = 1, b = 1, c;
        c = a++ + b;
        printf("%d, %d", a, b);
    }

ID: #1228 Operators and Enums in C Language 3,558 views
Question Info
#1228Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

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

  • A a = 1, b = 1
  • B a = 2, b = 1
  • C a = 1, b = 2
  • D a = 2, b = 2
Correct Answer

Explanation

Option B

Share This Question

Challenge a friend or share with your study group.