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

23rd Sep 2022, 5:34 PM
Mark Kipchumba
Mark Kipchumba - avatar
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
23rd Sep 2022, 6:05 PM
Jayakrishna šŸ‡®šŸ‡³
+ 1
Thank you i have understood
24th Sep 2022, 6:13 PM
Mark Kipchumba
Mark Kipchumba - avatar