I am reading the second edition of K & R, and one exercise requires printing all the maximum integer values ββdefined in the limits.h header. However, this ...
printf("unsigned int: 0 to %d\n", UINT_MAX);
... outputs the following:
unsigned int: 0 to -1
Why am I getting -1? Can anyone explain this behavior?
I am using the Digital Mars C compiler on Vista.
source share