/* Program to print ranges of implementation-dependent integer types */ #include #include int main () { printf ("Table of ranges for implementation-dependent integer types\n\n"); printf ("Integer type Minimum in range Maximum in range\n\n"); printf ("unsigned char %21d %21d\n", 0, UCHAR_MAX); printf ("char %21d %21d\n\n", CHAR_MIN, CHAR_MAX); printf ("unsigned short int %21d %21u\n", 0, USHRT_MAX); printf ("short int %21d %21d\n\n", SHRT_MIN, SHRT_MAX); printf ("unsigned int %21d %21u\n", 0, UINT_MAX); printf ("int %21d %2d\n\n", INT_MIN, INT_MAX); printf ("unsigned long int %21d %21lu\n", 0, ULONG_MAX); printf ("long int %21ld %21ld\n\n", LONG_MIN, LONG_MAX); printf ("unsigned long long int %21d %21llu\n", 0, ULLONG_MAX); printf ("long long int %21lld %21lld\n", LLONG_MIN, LLONG_MAX); return 0; }