What will be address range which can be represented in 20 bit?
Binary | Hexadecimal | |
Min possible | 0000 0000 0000 0000 0000 | 00000 |
Max possible | 1111 1111 1111 1111 1111 | FFFFF |
In c any hexadecimal number start with 0x 0r 0X So, address range will be 0x0000 to 0xFFFF. So in turbo C 3.0 memory address of all variables must be within 0x0000 to oxFFFF.
It is 1MB memory range.
Note.
2^10 = 1KB
2^20 = 1MB
2^30 = 1GB
Where 10, 20, 30 are number of bit.
No comments:
Post a Comment