Home » C++ Programming » Numbers » Question
  1. What is the output of this program?
    #include <iostream>
    #include <limits>
    using namespace std;
    int main( )
    {
    cout << numeric_limits<short int> :: max() << endl;
    }
    1. 767
    2. 327
    3. 32767
    4. Compilation Error
    5. None of these
Correct Option: C

In this program, We are finding the max range for short int by using max function.



Your comments will be displayed only after manual approval.