Skip to content

Instantly share code, notes, and snippets.

@mattn
Created January 5, 2009 08:43
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 mattn/43328 to your computer and use it in GitHub Desktop.
Save mattn/43328 to your computer and use it in GitHub Desktop.
#include <iostream>
static const int a = (
std::cout << "foo" << std::endl,
1);
int main(int argc, char** argv) {
std::cout << "bar" << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment