Assume the variables a and b are signed integers and that th

Assume the variables a and b are signed integers and that the machine uses two\'s complement representation. Also assume that MAX_INT is the maximum integer, MIN_INT is the minimum integer, and W is one less than the word length (e.g., W = 31 for 32-bit integers). Match each of the descriptions on the left with a line of code on the right - write in (i), (ii), etc. Note that (a

Solution

Before answering,I would like to say that when two negations come together,they get cancelled up.

>> is the symbol right shift and <<is the symbol for left shift

| is the or symbol which means either of them are selected and & is the and symbol which it includes both of them.

1. (VI)

2. (II)

3. (II)

4. (III)

5. (VII)

 Assume the variables a and b are signed integers and that the machine uses two\'s complement representation. Also assume that MAX_INT is the maximum integer, M

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site