+ 1
What is the meaning of a^ and b^ in the following code?
include <stdio.h> int main() { int a=2, b=3; a^=b^=a^=b; printf("a=%d b=%d", a,b); }
1 Answer
+ 1
The ^ operator is a bitwise operator. This lesson gives a brief overview about it:
https://www.sololearn.com/learn/4074/?ref=app