a^=b
b^=a
a^=b
is this code work in c# for swap of two numbers. if yes what is the logic behind this i know it is OR operator but i thought that it is use only with bool function.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Dec 8, 2014, 5:24 AM