maximum int c++
#include <limits>
int imin = std::numeric_limits<int>::min(); // minimum value
int imax = std::numeric_limits<int>::max(); // maximum value (2147483647)
maximum int c++
#include <limits>
int imin = std::numeric_limits<int>::min(); // minimum value
int imax = std::numeric_limits<int>::max(); // maximum value (2147483647)
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;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us