Friday, September 11, 2009

Logical XOR operator


operator bitwise logical
not ~ !
and & &&
or | ||
xor ^ ???????


Where's the logical XOR operator?? One does exist in Java. Do you know what it is?

5 comments:

Andy said...

A simple google search reveals: ^

thejoshwolfe said...

oh, you're right. I didn't even know that.

alright, smartass. there's also a logical XNOR operator. do you know what that is?

Andy said...

How about =

thejoshwolfe said...

Well, if this were VB or Maple I might agree with that.

Andy said...

hmm I'm editing in C++ as I type the comment. I wonder why I did that.