You don't need to convert from bits to bytes. Each bit can hold a value, and each value can access a byte. Computers fetch data on the hard drive one byte (8-bits) at a time, so 0 fetches bit 0-7, 1 fetches bit 8-15. If memory addresses are stored in 32-bit unsigned, accessing 8-bits per number means that a 32-bit number can access 2^32 bytes (2^40 bits).Hi,
2^32 bit = 4294967296 bit ( /8 ) = 536870912 Byte (/1024) KByte = 524288 (/1024) = 512 MByte
How about two gigabytes calculated?
http://www.anandtech.com/show/2272/2Hi,
2^32 bit = 4294967296 bit ( /8 ) = 536870912 Byte (/1024) KByte = 524288 (/1024) = 512 MByte
How about two gigabytes calculated?
I'm not sure why an unsigned integer wasn't used.
