Skip to content

Instantly share code, notes, and snippets.

@danbeam
Created May 9, 2012 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danbeam/2649716 to your computer and use it in GitHub Desktop.
Save danbeam/2649716 to your computer and use it in GitHub Desktop.
$ cat blah.cc
#include <iostream>
int main() {
int i = 0;
if (i || (i = 5))
std::cout << "yay!";
return 0;
}
$ g++ blah.cc
$ ./a.out && echo
yay!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment