I'm having trouble with these little buggers. I know how to turn certain bits on, but I can't work out the operator to turn them off. Eg:
What I want is the symbol where the question mark is. What code can I use to ensure that certain bits are turned off?Code:int integer; integer=45; integer|=1|4|8; //Ensures that these bits are on integer?=2|16; //Ensures that these bits are off