+ 3

What is the XOR(^) opreator in CPP and what is its use?

opreators

29th Jul 2018, 1:24 PM
manas pandey
manas pandey - avatar
6 Answers
+ 5
XOR Operator Truth Table True True => False True False => True False True => True False False => False Hope this helps â˜șâ˜ș.
30th Jul 2018, 5:41 PM
Meet Mehta
Meet Mehta - avatar
29th Jul 2018, 3:01 PM
Satyam
+ 2
Thanks Ben allen.... That helped.... but then again manas pandey asked a very good question....... Its because of him I learning this...
30th Jul 2018, 1:21 PM
Harry Potter
Harry Potter - avatar
+ 1
It's exclusive OR. A normal OR will return true if one or both statements are true. XOR returns true if and only if ONE statement is true. If both are true it will return false.
29th Jul 2018, 2:39 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
0
Oh I see!!! That was a typo mistake â˜șâ˜ș.
2nd Aug 2018, 12:53 PM
Meet Mehta
Meet Mehta - avatar
- 1
MEET MEHTA That's incorrect.
2nd Aug 2018, 12:45 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar