How come the output was 8? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
20th Feb 2019, 2:16 PM
Pooja Sri
Pooja Sri - avatar
2 Answers
+ 3
The value is indeterminate; using the variable before initialization results in undefined behavior.It might be different between different compilers.
20th Feb 2019, 2:52 PM
REO 👻
REO 👻 - avatar
+ 1
Thank you
20th Feb 2019, 2:30 PM
Pooja Sri
Pooja Sri - avatar