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

 

We know that &mylong is 4072 (given). Going there, we find the bit pattern:

 

            11111111111111111111110100111000 (on 32-bits)

 

To evaluate, we must first Compliment:

 

            00000000000000000000001011000111 (One’s Compliment)

            +                                                                      1

            00000000000000000000001011001000 (Two’s Compliment)

 

Which is:  29 + 27 + 26 + 23 =  512 + 128 + 64 + 8 = 712