Single Choice Not Set

QWhat is the output of this C code?
    int main()
    {
        int a = 10, b = 10;
        if (a = 5)
        b--;
        printf("%d, %d", a, b--);
    }

ID: #1250 Operators and Enums in C Language 1,555 views
Question Info
#1250Q 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 = 10, b = 9
  • B a = 10, b = 8
  • C a = 5, b = 9
  • D a = 5, b = 8
Correct Answer

Explanation

Option C

Share This Question

Challenge a friend or share with your study group.