Question
84. Input 2 integers x, y [ -231,231-1 ], then output 1s complement of x, x, y, x bitwise-and y, x bitwise-inclusive-or y, x bitwise-exclusive-or
84. Input 2 integers x, y [ -231,231-1 ], then output 1s complement of x, x, y, x bitwise-and y, x bitwise-inclusive-or y, x bitwise-exclusive-or y all as 32-bit unsigned binary integers. No negative signs should show up in the output. Here is an example of properly formatted output x? 123 y? 456 x = 00000000000000000000000001111011 y = 00000000000000000000000111001000 ~x = 11111111111111111111111110000100 x & y = 00000000000000000000000001001000 x | y = 00000000000000000000000111111011 x ^ y = 00000000000000000000000110110011
I need it in python
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started