Vidyalelo
C Programming · Q96

C Fundamentals

Programming · C Programming · question 96

Q96

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

A.
5
B.
6
Answer
C.
Undefined behaviour
D.
Compile time error

Answer: Option B

Solution

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