Possible Duplicate:
What are bitwise operators?
Recently I came across a few samples that used the | and ^ operator. I am guessing these are or and negation operators.
So what actually do these operators stands for?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you apply it to integral types, they are bitwise or and xor operator.
However if you apply them to boolean types, they are logical or and xor.
Look at an explanation of or operator and xor operator
You can get more details on boolean operations from the wikipedia truth table