+ 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); }

25th Mar 2020, 4:28 AM
Yash Chaudhari
Yash Chaudhari - avatar
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
25th Mar 2020, 7:18 AM
Shadow
Shadow - avatar