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
Get step-by-step solutions from verified subject matter experts
