why unsigned int 0xFFFFFFFF is equal to int -1?
- by conejoroy
perhaps it's a very stupid question but I'm having a hard time figuring this out =)
in C or C++ it is said that the maximum number a size_t (an unsigned int data type) can hold is the same as casting -1 to that data type. for example see http://stackoverflow.com/questions/1420982/invalid-value-for-sizet
Why?? I'm confused..
I mean, (talking…