66 973
Assignments Done
99,2%
Successfully Done
In November 2018

Answer to Question #22375 in C++ for emmanuel

Question #22375
if a= 0X7406 and b= 0x9B2E find a|b , a$b , a^b
Expert's answer
#include <conio.h>
#include <iostream>

using namespace std;

void main()
{
int a = 0x7406;
int b = 0x9B2E;

cout << "a = " << hex << a << endl;
cout << "b = " << hex << b << endl << endl;

cout << "a | b = " << hex << (a | b) << endl;
cout << "a & b = " << hex << (a & b) << endl;
cout << "a ^ b = " << hex << (a ^ b) << endl;
getch();
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions