Answers for "limits max c++"

C++
1

maximum int c++

#include <limits>

int imin = std::numeric_limits<int>::min(); // minimum value
int imax = std::numeric_limits<int>::max(); // maximum value (2147483647)
Posted by: Guest on August-07-2020
0

C++ Limit of Integer

cout << "The maximum limit of int data type is " << INT_MAX << endl;
    cout << "The minimum limit of int data type is " << INT_MIN << endl;
    cout << "The maximum limit of unsigned int data type is " << UINT_MAX << endl;
    cout << "The maximum limit of long long data type is " << LLONG_MAX << endl;
    cout << "The minimum limit of long long data type is " << LLONG_MIN << endl;
    cout << "The maximum limit of unsigned long long data type is " << ULLONG_MAX << endl;
    cout << "The Bits contain in char data type is " << CHAR_BIT << endl; 
    cout << "The maximum limit of char data type is " << CHAR_MAX << endl;
    cout << "The minimum limit of char data type is " << CHAR_MIN << endl;
    cout << "The maximum limit of signed char data type is " << SCHAR_MAX << endl;
    cout << "The minimum limit of signed char data type is " << SCHAR_MIN << endl;
    cout << "The maximum limit of unsigned char data type is " << UCHAR_MAX << endl;
    cout << "The minimum limit of short data type is " << SHRT_MIN << endl;
    cout << "The maximum limit of short data type is " << SHRT_MAX << endl;
    cout << "The maximum limit of unsigned short data type is " << USHRT_MAX << endl;
Posted by: Guest on March-09-2022

Browse Popular Code Answers by Language