Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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;
 
PREVIOUS NEXT
Tagged: #Limit #Integer
ADD COMMENT
Topic
Name
3+1 =