posted 23 years ago
Hexadecimals are in base 16 so in bit format that is 4 bits. With that in mind, convert 0x100 to bits gives you:
1 0 0
| | |
0001 0000 0000 = 256 in decimal
Then you add N++ to it which is 2 since it is a post incrementor, so that gives you 258.
Go through the link Jane has above, it really explains these concepts well.
Bill
[This message has been edited by bill bozeman (edited December 04, 2000).]
[This message has been edited by bill bozeman (edited December 04, 2000).]