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
2^30 = 1GB  


4 comments:

Anonymous said...

Hexadecimal Equivalent should be 00000 to FFFFF

deep sharma said...

well done! Nice to gain lot of facts about C programming.

Anonymous said...

Great job bro, keep doing

www.bitojo.tk

sai kiran said...

Where 10, 20, 30 are number of bytes..
plz channge it frm bits to bytes...