[Solved] cout value without touching variable C++
When you print the addresses of a and b, that forces the variables to actually have a memory address. Otherwise a value might be stored in a register, or not at all if never used. It is a very common optimization for compilers to transform const int a = 9; cout << a; into cout … Read more