Skip to content

Instantly share code, notes, and snippets.

@jsteemann
Created February 2, 2021 12: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 jsteemann/a2097dfc005af710d0ad11559b1aa484 to your computer and use it in GitHub Desktop.
Save jsteemann/a2097dfc005af710d0ad11559b1aa484 to your computer and use it in GitHub Desktop.
$ cat x.cpp; g++ -O3 x.cpp && ./a.out | head -n 10
#include <iostream>
int main()
{
for (int i = 0; i < 4; ++i) {
std::cout << i*1000000000 << std::endl;
}
}
0
1000000000
2000000000
-1294967296
-294967296
705032704
1705032704
-1589934592
-589934592
410065408
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment