#include<stdio.h>
void main()
{
printf("Value : %d",10^9);
}
Result : 3
Can anybody please help me with this..i don't get how the result can be 3...
the ^ doesn't mean to the power, it is a binary "exclusive or" (xor) operator in C++.
http://www.cplusplus.com/doc/tutorial/operators/
Last edited on
Hey thanks..got it now..a very simple one!