#include #include #include int main() { printf("CHAR_BIT = %d\n", CHAR_BIT ); printf("SCHAR_MIN = %d\n", SCHAR_MIN ); printf("SCHAR_MAX = %d\n", SCHAR_MAX ); printf("CHAR_MIN = %d\n", CHAR_MIN ); printf("CHAR_MAX = %d\n", CHAR_MAX ); printf("UCHAR_MAX = %d\n\n", UCHAR_MAX ); printf("MB_LEN_MAX = %d\n\n", MB_LEN_MAX ); printf("SHRT_MIN = %d\n", SHRT_MIN ); printf("SHRT_MAX = %d\n", SHRT_MAX ); printf("USHRT_MAX = %d\n\n", USHRT_MAX ); printf("INT_MIN = %d\n", INT_MIN ); printf("INT_MAX = %d\n", INT_MAX ); printf("UINT_MAX = %ud\n\n", UINT_MAX ); printf("LONG_MIN = %d\n", LONG_MIN ); printf("LONG_MAX = %d\n", LONG_MAX ); printf("ULONG_MAX = %ul\n\n", ULONG_MAX ); printf("LLONG_MIN = %lld\n", LLONG_MIN ); printf("LLONG_MAX = %lld\n", LLONG_MAX ); printf("ULLONG_MAX = %llu\n\n", ULLONG_MAX ); printf("FLT_MIN = %E\n", FLT_MIN ); /* smallest non-zero value */ printf("FLT_DIG = %d\n", FLT_DIG ); /* precision */ printf("FLT_MAX = %E\n\n", FLT_MAX ); printf("DBL_MIN = %E\n", DBL_MIN ); /* smallest non-zero value */ printf("DBL_DIG = %d\n", DBL_DIG ); /* precision */ printf("DBL_MAX = %lE\n\n", DBL_MAX ); printf("LDBL_MIN = %LE\n", LDBL_MIN ); /* smallest non-zero value */ printf("LDBL_DIG = %d\n", LDBL_DIG ); /* precision */ printf("LDBL_MAX = %LE\n\n", LDBL_MAX ); return 0; } /* Output: CHAR_BIT = 8 SCHAR_MIN = -128 SCHAR_MAX = 127 CHAR_MIN = -128 CHAR_MAX = 127 UCHAR_MAX = 255 MB_LEN_MAX = 16 SHRT_MIN = -32768 SHRT_MAX = 32767 USHRT_MAX = 65535 INT_MIN = -2147483648 INT_MAX = 2147483647 UINT_MAX = 4294967295d LONG_MIN = -2147483648 LONG_MAX = 2147483647 ULONG_MAX = 4294967295l LLONG_MIN = -9223372036854775808 LLONG_MAX = 9223372036854775807 ULLONG_MAX = 18446744073709551615 FLT_MIN = 1.175494E-38 FLT_DIG = 6 FLT_MAX = 3.402823E+38 DBL_MIN = 2.225074E-308 DBL_DIG = 15 DBL_MAX = 1.797693E+308 LDBL_MIN = 3.362103E-4932 LDBL_DIG = 18 LDBL_MAX = 1.189731E+4932 */