MCQ Single Best Answer Not Set

QWhat is the output of this C code?

#include<stdio.h> 
void main()
{
	int y = 3;
	int x = 7 % 4 * 3 / 2;
	printf("Value of x is %d", x);
}

ID: #1168 Operators and Enums in C Language 3,675 views
Question Info
#1168Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

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

  • A Value of x is 4
  • B Value of x is 1
  • C Value of x is 3
  • D Compile time error
Correct Answer: Option A

Explanation

Option A

Share This Question

Challenge a friend or share with your study group.