Question: Using c plus plus shell Take two hex numbers-Ox9A and OxF2. Perform and display the following bitwise operations and have the result sent to the
Take two hex numbers-Ox9A and OxF2. Perform and display the following bitwise operations and have the result sent to the screen: a) a. NOT (each number) b AND c. OR d. XOR b) Create an accurate 2's complement subtraction of 0x77-0x58 by a. NOT the OX5B b. Add 1 to it c. Add to Ox77 d. Repeat part (b) for the subtraction of oxs8-0x77. Keep in mind you will need to convert the final Display the solution d) answer back to see if it is correct
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
