![]() ![]() |
| |||||||||
| Hotspots: Slides and Code TA Corner Comments? Announcements FAQ Static Webspace | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| You're confusing bits and characters. Look at Greg's answer. Mark Guzdial |
| Think about it this way: At what value of "n" does 2^n give a value greater than or equal to 65535 or 1024? 2^8 is 256. 2^9 is 512. 2^10 is 1024 – BINGO for one! 2^11 is 2048. 2^12 is 4096. 2^13 is 8192. 2^14 is 16384. 2^15 is 32768 (remember this one from samples?). 2^16 is 65536 – BINGO for the second! Mark Guzdial |
| Remember in the book that n bits can represent values up to 2^n. That's where the equation comes from. 8 bits is enough to represent all the characters needed (for English), so that's how bytes came to be defined. Mark Guzdial |