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

Q Identify the correct output of the following code:

#include<stdio.h> 
void main()
{
   int w=10, x=5, y=3, z=3;
   if( (w < x ) && (y=z++) )
      printf("%d %d %d %d", w, x, y, z);
   else
      printf("%d %d %d %d", w, x, y, z);
}

Question ID
#1210
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.

  • A 10 5 4 4
  • B 10 5 4 3
  • C 10 5 3 3
  • D 10 5 3 4
Correct Answer: C

Explanation

10 5 3 3

Share This Question

Share this MCQ with your friends or study group.