C Programming MCQ

1:

If integer needs two bytes of storage, then maximum value of a signed interger is

A.

216-1

B.

215-1

C.

216

D.

None of these

 

Answer : B

Explanation :

In signed magnitude form, one bit is dedicated to store the sign(e.g., 1 for negative and otherwise). Only the remaining 15 bits are available to store the magnitude. Hence the answer.

paddhu said: (2:04pm on Saturday 24th August 2013)
it's (2^15)-1

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.