Quote:
Are pointers guaranteed to be of int size?

No. They happen to be so on ARM, but on alpha-linux, for instance, pointers are 64-bit and ints are 32-bit. (Sparc64 too?) But those snippets don't assume anything about the size of pointers.

Peter