Visual Studio Code – Unexpected Output When Using /n in C++: Why Does It Print 12142?
I encountered a strange issue while working on a C++ program with VisusalStuidio 2021. When I used cout << '/n';, I expected it to simply print /n or values in ASCII(47110), but instead, it printed 12142. This behavior is confusing…