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

Q What 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);
}

Question ID
#1168
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 Value of x is 4
  • B Value of x is 1
  • C Value of x is 3
  • D Compile time error
Correct Answer: A

Explanation

Option A

Share This Question

Share this MCQ with your friends or study group.