kelargo wrote: I like to count with my fingers. four fingers on each hand and start by counting backwards. right pinky=1, 2, 4, 8 then my left hand 16, 32, 64, 128. then to get the mask, add from left-to-right: left pinky = 128, then 192, 224, 240 then right hand 248, 252, 254, 255 each finger is a bit; quick and dirty visual aid.
bashtie wrote: » kevin31 as you know computers are working with binary ... so its base 2 2^0 2^1 2^2 2^3 and so on ... thats what is meant by the power of 2 thing the rightmost bit is 2^0 the one left to this is 2^1 and so on ... hope this helps