Hi,

Let's say I have this code:
Code:
#define ITEM1 0x00000001
#define ITEM2 0x00000002
#define ITEM3 0x00000003
int x=0;
x|=ITEM1;
x|=ITEM2;
x|=ITEM3;
I know I can check if an item is added by using "&", but how can I remove one item from the variable?