Vidyalelo
C Programming · Q245

C Fundamentals

Programming · C Programming · question 245

Q245

What will be the output of the following C code? #include int main() int x = 2, y = 2; x /= x / y; printf("%d ", x); return 0;

A.
2
Answer
B.
1
C.
0.5
D.
Undefined behaviour

Answer: Option A

Solution

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