Qus : Which data type is most suitable for storing a number 65000 in a 32-bit system?
Qus 32-बिट सिस्टम में नंबर 65000 को संग्रहीत करने के लिए कौन सा डेटा प्रकार सबसे उपयुक्त है?
A. signed short B. unsigned short
C. long D. int
Solution
B. unsigned short
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.