Weird thing while trying to avoid pointers in C++

Printable View