View Single Post
Old 09-29-2009, 05:05 AM   #31
stupeT
Human being with feelings
 
stupeT's Avatar
 
Join Date: Jan 2009
Location: frankonia
Posts: 1,996
Default

Quote:
Originally Posted by imMute View Post
There are two types of people: 1) those who start array indexes at one and 1) those who start array indexes at zero



On the other hand the bit's number calculates it's value:

Bit 0 is 2 power 0 = 1
Bit 1 is 2 power 1 = 2
Bit 2 is 2 power 2 = 4
Bit 3 is 2 power 3 = 8

And that's a good reason to start at zero...
__________________
------------------------------------------
Don't read this sentence to it's end, please.
stupeT is offline   Reply With Quote