0

What is the use of the ^= assignment operator in C#

Please try to explain with examples. I have done a lot of research on this and it just keeps getting harder to get. & Thanks in advance for your reply

11th Oct 2022, 7:26 PM
Mr Ajiero
Mr Ajiero - avatar
2 odpowiedzi
+ 5
Mr Ajiero ^ is bitwise xor operator : x^=y is short form for x = x^y ; I think, You can find clear explanation with example from here. hope it helps. https://www.sololearn.com/learn/4074/?ref=app
11th Oct 2022, 8:22 PM
Jayakrishna 🇮🇳
+ 1
Thanks Jayakrishna🇮🇳 . It was helpful
11th Oct 2022, 10:30 PM
Mr Ajiero
Mr Ajiero - avatar