Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions