As the title suggests, I am curious about how an unsigned int (or things like NSUInteger, u_int_blah, but I assume these are all
unsigned int
NSUInteger
u_int_blah
When you assign a negative number
unsigned int = -1;
The number you got will be 4294967295, or 4^8 -1
because the size of integer is 4bytes, or 4^8 = 4294967296
The integer will wrap around this number if it is negative