Vidyalelo
C Programming · Q297

C Fundamentals

Programming · C Programming · question 297

Q297

What will be the output of the following C code? #include void main() int y = 3; int x = 5 % 2 * 3 / 2; printf("Value of x is %d", x);

A.
Value of x is 1
Answer
B.
Value of x is 2
C.
Value of x is 3
D.
Compile time error

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board