- Is FFFF a mix of both hexadecimal and decimal notation? How does FFFF equals 2^16? I don't understand how to interpret FFFF. The right most F represents 8 4 2 1, the second most F represents 128 64 32 16, the third most F represents 2048 1024 512 256 the the left most F represents 32768 16834 8192 4096?
In your example for Range 1, you are correct. That is the size of the memory, stated in hexidecimal, in bytes. You may gain the most insight by first converting 00FF FFFF to a decimal number, then converting that number of bytes into megabytes. To convert from bytes to megabytes use the relationship 1 MB = 1 Megabyte = 1024 * 1 KB = 1,048,576 bytes. There are tons of online Hex to Decimal ...
My book says the hexadecimal notation FFFF equals 65535 in decimal value. As I understand it that equals to 2^16. There are a couple of things I still don't fully understand. 1) Is FFFF a mix of b...
The hexadecimal notation 0xffff makes it clear that all bits in the number are 1. The 65535 is the same number, but the binary representation isn't as obvious. It's only a count number. So this way of writing numbers has different semantics. For example, if you want to declare that the maximum value of some variable must be 65535, then it is best to state this like this:
Why convert 0xffffffff to decimal is -1 in C? Asked 13 years, 9 months ago Modified 5 years, 11 months ago Viewed 13k times