   what is the meaning of this statement?
a |= 1<<b;
  It means, switch the bit in the b'th position in a to 1. Assuming we're talking about numbers here.   ;  It is exactly the same as:a = a | (1 << b)Which does what jflanglois said.   ;http://en.wikipedia.org/wiki/Bitwise_operation:)   