MCQ Single Best Answer Not Set

QWhat is the output of this C code?
     void main()
    {
        int a = 5, b = -7, c = 0, d;
        d = ++a && ++b || ++c;
        printf("\n%d%d%d%d", a, b, c, d);
    }

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

Choose the Best Option

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

  • A 6 -6 0 0
  • B 6 -5 0 1
  • C -6 -6 0 1
  • D 6 -6 0 1
Correct Answer: Option D

Explanation

Option D

Share This Question

Challenge a friend or share with your study group.