Subj : Re: bit shifting To : comp.programming From : Rob Somers Date : Sun Aug 14 2005 06:45 pm > You've almost got it. A variable has a very specific number of bits, > and the ~ operator flips every one of them. > > shorts usually have 16 bits nowadays. You want 'char' for 8 bits. > > So, a 'short' value of 128 (decimal) would be 0000000010000000 binary. > > > SaSW, Willem Ah - thank you all for helping me to understand things. I appreciate it. .