Does xor exist in c#? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Does xor exist in c#?

31st Aug 2016, 1:21 PM
Benedek Máté Tóth
Benedek Máté Tóth - avatar
4 Answers
+ 2
Fabrizio,thank you!
12th Sep 2016, 10:51 AM
Benedek Máté Tóth
Benedek Máté Tóth - avatar
+ 1
please, give me a simple example!
5th Sep 2016, 4:17 PM
Benedek Máté Tóth
Benedek Máté Tóth - avatar
+ 1
in C# (as in C and C++) the ^ operator is the XOR
12th Sep 2016, 9:54 AM
Fabrizio Tarizzo
0
I can be wrong but You can simply create it by putting AND between operands and then using NOT on only one operand. If I am wrong, please correct.
4th Sep 2016, 8:51 PM
Antonius King
Antonius King - avatar