+ 7
^ is Bitwise XOP and use binary representation.
It give 1 if any one is 1, return 0 if both are 0,1
3 =>0000 0011 (binary)
10 =>0000 1010 (binary)
-------------------
0000 1001 = (binary of 9)
https://www.sololearn.com/learn/4074/?ref=app
+ 3
Yes , you are right vadivelan



