/ * Write a program to determine the value range of the CHAR, SHORT, INT, INT, and LONG type defined by Signed and Unsigned, and implements two methods in printing standard header files and direct calculation.
#include
INT main (void) {Signed CHAR C = 0; Signed I = 0; Signed Long L = 0; Unsigned Char UC = 0; Unsigned Short US = 0; Unsigned Int UI = 0; unsigned UL = 0; Printf ("Method: / n" by printing standard header file: / n "); s_print (" signed, char_m, char_max, shrt_max, shout_max, int_min, int_max, long_min, long_max); PUTCHAR ('/ n' ); US_PRINT ("unsigned", 0, uchar_max, 0, ushrt_max, 0, uint_max, 0, ulong_max); Printf ("/ N uses direct calculation method: / n"); s_print ("soud", min (c) ), ~ Min (c), min (s), ~ min (i), min (l), ~ min (L)); PUTCHAR ('/ n'); US_Print ("unsigned", 0, ~ uc, 0, ~ us, 0, ~ ui, 0, ~ ul); PUTCHAR ('/ n');
Return 0;}
============================================================================================================================================================================================================= ============