MCQ Single Best Answer Not Set

QWhat is the output of this C code?
    int main()
    {
        int i = 1;
        if (i++ && (i == 1))
            printf("Yes\n");
        else
            printf("No\n");
    }

ID: #1247 Operators and Enums in C Language 2,600 views
Question Info
#1247Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

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

  • A Yes
  • B No
  • C Depends on the compiler
  • D Depends on the standard
Correct Answer: Option B

Explanation

Option B

Share This Question

Challenge a friend or share with your study group.