[C++] Interesting example of C++ code obfuscation
Recently a friend of mine has given me a piece of code in C++: puts(&3["abcdef"]);puts(&3["abcdef"]); At first glance it seems to not compile at all. But not only it compiles, but also prints “def”.
Recently a friend of mine has given me a piece of code in C++: puts(&3["abcdef"]);puts(&3["abcdef"]); At first glance it seems to not compile at all. But not only it compiles, but also prints “def”.