3/9 XOR is the same as || right? (i.e. exclusive or)
\_ no. i recommend buying a copy of K&R --aaron
What are ways to write "inclusive or"?
\_ questions like these elicit good response following the bike shed
principle.
\_ I am unfamiliar with "the bike shed principle". Also, i don't
really care about the differences between XOR and ||.
basically i just want to know short hand to write inclusive/
exclusive or. So that i can say "is A XOR B true?" or "is
A IOR B true". where, if A and B or true the answer to the
A IOR B true?" where, if A and B are true, the answer to the
former is NO and the answer to the latter is YES.
\_ RTFM you dumbass. What are you talking about? Are you
even asking about a programming language? Which one?
\_ NO I AM NOT. If i was i would have specified.
You can say whatever you want but || is logical or in C/C++.
\_ yes, get K&R, but in the meantime, a quick lesson. in C/C++/Java:
|| : short-circuiting, logical, inclusive OR
| : bitwise inclusive OR; doubles as non-short-circuiting,
logical, inclusive OR
^ : bitwise XOR; doubles as logical XOR |