The minimum possible value of a variable of type short int is _______.
- -32768
- 0
- -1024
- -2147483648
The short int type in C++ is typically 16 bits in size. Given that it's signed, half of the 2^16 possible values are negative. The range thus typically starts at -32768 and goes up to 32767.
Loading...
Related Quiz
- Creating user-defined exceptions in C++ can be achieved by inheriting the _______ class.
- What is the primary reason for using smart pointers over raw pointers in modern C++?
- What is the basic idea behind recursion in programming?
- To achieve runtime polymorphism in C++, _______ are used.
- Unlike if-else, switch-case in C++ does not support _______ type for case values.