Skip to content

Instantly share code, notes, and snippets.

@zeromus
Created November 14, 2012 04:58
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 zeromus/4070337 to your computer and use it in GitHub Desktop.
Save zeromus/4070337 to your computer and use it in GitHub Desktop.
int x = 30;
Console.WriteLine("{0:X16}", 1 << (x++));
Console.WriteLine("{0:X16}", 1 << (x++));
Console.WriteLine("{0:X16}", 1 << (x++));
Console.WriteLine("{0:X16}", 1 << (x++));
Console.WriteLine("{0:X16}", 1 << (x++));
0000000040000000
0000000080000000
0000000000000001
0000000000000002
0000000000000004
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment