+ 1
Question on c++ anybody please help me understand this
#include <iostream> using namespace std; int main() { int x,y; x=5; x=6; cout<<(x&y)<<endl; cout<<(x|y)<<endl; cout<<(x^y)<<endl; return 0; }
2 Answers
+ 2
Explanation is here :
& Bitwise and operator
https://www.sololearn.com/learn/4072/?ref=app
| bitwise or operator
https://www.sololearn.com/learn/4073/?ref=app
^ exclusive or operator
https://www.sololearn.com/learn/4074/?ref=app
+ 1
Thank you i have understood