MCQ Single Best Answer Not Set

QWhich data type is most suitable for storing a number 65000 in a 32-bit system?

ID: #888 Data Types in C Language 29,880 views
Question Info
#888Q ID
Not SetDifficulty
Data Types in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Unsigned short
  • B Long
  • C Int
  • D Signed short
Correct Answer: Option 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.

Share This Question

Challenge a friend or share with your study group.