Skip to content

Instantly share code, notes, and snippets.

@vivkin
Created November 29, 2016 07:40
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 vivkin/8f615135e8845cf234cf0646bcafa7f1 to your computer and use it in GitHub Desktop.
Save vivkin/8f615135e8845cf234cf0646bcafa7f1 to your computer and use it in GitHub Desktop.
int d = 42;
int o = 052;
int foo = 2321312;
int x = 0xdead'beef;
int X = 0Xc0'0f'fe;
int y = 0XBAD'cab1e;
int Y = 0Xc0'0f'fe;
int b = 0b101010; // C++14
unsigned long long l1 = 18446744073709550592ull; // C++11
unsigned long long l2 = 18'446'744'073'709'550'592llu; // C++14
unsigned long long l3 = 1844'6744'0737'0955'0592uLL; // C++14
unsigned long long l4 = 184467'440737'0'95505'92LLU; // C++14
auto notbroken = 111'2'333;
float f0 = 1.0f;
float d0 = 100.500;
#if FOOBAR
int e = 059;
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment