What is the use of exclusive or ^ in c++?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the use of exclusive or ^ in c++??

7th Oct 2017, 10:41 AM
Prateek Gupta
Prateek Gupta - avatar
2 Answers
+ 1
You can use it as a conditions in a loop for example just like you would use an or || or an and &&, exclusive or means either this or either that, both can't be true and both can't be false
7th Oct 2017, 10:57 AM
‎ɐısıօլɐ
‎ɐısıօլɐ - avatar
+ 4
7th Oct 2017, 12:29 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar