Question
Question 1 Find the 32-bit binary representation (using two's complement) of the integer held by 'i' after the following code is executed. Then enter the
Question 1
Find the 32-bit binary representation (using two's complement) of the integer held by 'i' after the following code is executed. Then enter the 10 least significant digits of that binary representation (that is, the 10 rightmost digits of the bit string) in the box below.
For example if the final bit string is 101010100000000001111111001100, enter 1111001100 as your answer.
int i = ~((84 ^ 116) << 2);
Question 2
After the following code is executed, what will be the value held by 'i'? (Enter its numeric value in the box below.)
int i = ~((84 ^ 116) << 2);
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