C Programming MCQ

1:

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

A.

 216 -1

B.

 215 -1

C.

216

D.

215

 

Answer : B

Explanation :

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

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.