Skip to content

Instantly share code, notes, and snippets.

@MrTrick
Created October 13, 2010 03:07
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 MrTrick/623355 to your computer and use it in GitHub Desktop.
Save MrTrick/623355 to your computer and use it in GitHub Desktop.
May your signals all trap
May your references be bounded
All memory aligned
Floats to ints rounded
Remember ...
Non-zero is true
++ adds one
Arrays start with zero
And NULL is for none
For octal, use zero
0x means hex
= will set
== means test
use -> for a pointer
a dot if its not
? : is confusing
use them a lot
a.out is your program
there's no U in foobar
And char (*(*x())[])() is a function returning a pointer to an array of pointers to functions returning char.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment