New course! Every coder should learn Generative AI!
Try a free lesson0
How come the output was 8?
2 Answers
+ 3
The value is indeterminate; using the variable before initialization results in undefined behavior.It might be different between different compilers.
+ 1
Thank you