100.0090.B.   What would be the output of the statement:   printf(“%d”, myarray[4]); ?

 

Since myarray[3] is located at 56884, myarray[4] must be located at 56888 (= 56884 + 4). Looking at location 56888 (through 56891), we find:

 

11111111111111111111111111101010 (on 32-bits).

 

We know the number is a negative value, so to find out the correct value, we must perform a 2’s compliment:

 

11111111111111111111111111101010

 

 

 0000000000000000000000000010101

+                                                           1

 0000000000000000000000000010110

 

Which evaluates to: -(24 + 22 + 21) =  -(16 + 4 + 2) = -22