MCQ Single Best Answer Not Set

QWhat is the output of this C code?
    int main()
    {
        int y = 0;
        if (1 |(y = 1))
            printf("y is %d\n", y);
        else
            printf("%d\n", y);
 
    }

ID: #1225 Operators and Enums in C Language 849 views
Question Info
#1225Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

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

  • A 1
  • C Run time error
  • D Undefined
Correct Answer: Option A

Explanation

Option A

Share This Question

Challenge a friend or share with your study group.