Single Choice Not Set

QDetermine output of the following program code.

#include<stdio.h>
void main()
{
   int a, b=7;
   a = b<4 ? b<<1 : ++b>4 ? 7>>1 : a;
   printf("%d %d", a, b);
}

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

Choose the Best Option

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

  • A 3 7
  • B 7 3
  • C 8 3
  • D 3 8
Correct Answer

Explanation

3 8

Share This Question

Challenge a friend or share with your study group.