MCQ Single Best Answer Not Set

QIdentify 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);
}

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

Choose the Best Option

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

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

Explanation

10 5 3 3

Share This Question

Challenge a friend or share with your study group.