Shadow Theatrics: Code Snippets

Code for the Code Snobs

Here are some code snippets from the shadows, because you asked for it.

C++ Cacophony

This is some sample C++ code that's sure to confuse the compiler:

int main() { int x = 5; int y = 7; int z = x + y; int w = 0; w += z; std::cout << "The answer is " << w << std::endl; return 0; }

This code will output:

12