Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ 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