Scope of (string) literals
This code is fine across all platforms. The string gets compiled into the binary as a static string literal. If you are on windows for example you can even open your .exe with notepad and search for the string itself. Since it is a static string literal scope does not matter. String pooling: One thing … Read more