I saw the post of Nancy about & and && It arise me one question What is difference between | and | | operators Thanks Angela
Guy Reynolds
Ranch Hand
Joined: Oct 27, 2000
Posts: 61
posted
0
Exactly the same as the difference between & and &&, | is the OR operator and | | is the short-circuit OR operator. ie, instead of performing logical AND with booleans they perform logical OR with booleans. Also instead of performing bitwise AND with int types, | performs bitwise OR with int types. [This message has been edited by Guy Reynolds (edited June 26, 2001).]
Angela Jessi
Ranch Hand
Joined: Nov 27, 2000
Posts: 428
posted
0
Thanks angela
Originally posted by Guy Reynolds: Exactly the same as & and && except instead of performing logical AND with booleans they perform logical OR with booleans, also instead of performing bitwise AND with int types, | performs bitwise OR with int types.