#include <stdio.h> #include <limits.h> main() { printf("采用打印标准头文件limits.h的相应值\n"); //signer types printf("signed char min =%d\n", SCHAR_MIN); printf("signed char max =%d\n", SCHAR_MAX); printf("signed short min =%d\n", SHRT_MIN); printf("signed short max =%d\n", SHRT_MAX); printf("signed int min =%d\n", INT_MIN); printf("signed int max =%d\n", INT_MIN); printf("signed long min =%d\n", LONG_MIN); printf("signed long max =%d\n", LONG_MIN); //unsigned types printf("unsigned char max =%u\n", UCHAR_MAX); printf("unsigneed short max =%u\n", USHRT_MAX); printf("unsigned int max =%u\n", UINT_MAX); printf("unsigned long max =%u\n", ULLONG_MAX); system("pause"); return 0; }
标签:MIN,int,max,unsigned,signed,char,printf,MAX From: https://www.cnblogs.com/cjxs0/p/17296900.html