How many bits of memory does the Short datatype take up?

Đức Lưu

New member
How many bits of memory does the Short datatype take up?
A. 17
B. 15
C. 16
D. 14
 
Answer: C
Explanation: Any number can be represented in the form of a whole number or a floating-point number. If it must be represented as a whole number, then there are many options depending upon the size of the number in question. Here the short datatype takes up 16 bits of memory. In other words, it can store numbers between -32768 to 32767.
 

Tìm kiếm

Back
Top