MCQ PracticeSingle Best AnswerTopic: Data Types in C Language
Q
Which data type is most suitable for storing a number 65000 in a 32-bit system?
Question ID
#888
Subchapter
Data Types in C Language
Action
Choose one option below
Choose Your Answer
Click an option to check whether your answer is correct.
A
Unsigned short ✔✖
B
Long ✔✖
C
Int ✔✖
D
Signed short ✔✖
D
Correct Answer: D
Explanation
65000 comes in the range of short (16-bit) which occupies the least memory. Signed short ranges from -32768 to 32767 and hence we should use unsigned short.