wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

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

A
2161
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
2151
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
216
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
215
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B 2151

If integer needs two bytes of storage. Then maximum value of a signed integer is 2^15−1

The maximum positive number that int can store is 2^15-1=32767 and the least negative number that it can store is -2^15=-32768.

An integer is a datum of integral data type, a data type that represents some range of mathematical integers. Integral data types may be of different sizes and may or may not be allowed to contain negative values. Integers are commonly represented in a computer as a group of binary digits (bits).


flag
Suggest Corrections
thumbs-up
1
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Properties of Division of Integers
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon