MCQ Practice Single Best Answer Topic: Operators and Enums in C Language

Q What is the output of this C code?
    void main()
    {
        int x = 0, y = 2, z = 3;
        int a = x & y | z;
        printf("%d", a);
    }

Question ID
#1245
Subchapter
Operators and Enums in C Language
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • B 2
  • C 3
  • D Run time error
Correct Answer: C

Explanation

Option C

Share This Question

Share this MCQ with your friends or study group.