Wednesday 2 February 2011

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 0x00000 to 0xFFFFF. So in turbo C 3.0 memory address of all variables must be within 0x00000 to oxFFFFF.



It is 1MB memory range.



Note.

2^10 = 1KB

2^20 = 1MB

No comments:

Post a Comment