Hello friends,
I am following a book that states that range of unsigned integers is from 0 to 65535 for 16-bit compilers but this simple program has perplexed me:
The output given by this program is -32768 32767.Code:main() { unsigned i, j; clrscr(); i = 32768; j = 32767; printf("%d %d",i,j); getch(); }
Why is it going to the negative side when the range is from 0 to 65535;
I am using Borland C++ version 3.1 in Windows XP.
Thanks a lot.