posted 19 years ago
b1|b2 = bitwise manipulation
b1||b2 = boolean logic read b1 or b2.
Let's use a simple example for bitwise manipulation
int a = 1, b = 2, c;
c = a | b;
binary value a 0001 = 1
binary value b 0010 = 2
---------------------------
binary value c 0011 = 3
Rules for bit wise or are if on of the bits is 1, the result is 1.
Hope this helps.
-C