10.00.b.   What would the command:  printf(%ld”, mylong); yield?

 

We know that the variable is found at location 4072.

Going to that location, we find the bit pattern:

 

          11111111111111111111111010111011 (0n 32-bits)

 

We know the value is negative, so we must compliment:

 

          11111111111111111111111010111011

 

Becomes:

 

        00000000000000000000000101000100 (One’s Compliment)

       +                                                                      1

          00000000000000000000000101000101 (Two’s Compliment)

 

Evaluating:

 

          -(28 + 26 + 22 + 20 ) = -(256 + 64 + 4 + 1) = -325