2020-12-01 23:14:47 +00:00
|
|
|
#include <limits.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
int main(void){
|
2020-12-05 01:47:27 +00:00
|
|
|
// char
|
2020-12-01 23:14:47 +00:00
|
|
|
printf("%d %d %d\n", CHAR_BIT, CHAR_MAX, CHAR_MIN);
|
2020-12-05 01:47:27 +00:00
|
|
|
// signed char
|
|
|
|
printf("%d %d\n", SCHAR_MAX, SCHAR_MIN);
|
|
|
|
// unsigned char
|
|
|
|
printf("%d\n", UCHAR_MAX);
|
|
|
|
// int
|
2020-12-01 23:14:47 +00:00
|
|
|
printf("%d %d\n", INT_MAX, INT_MIN);
|
2020-12-05 01:47:27 +00:00
|
|
|
// short
|
2020-12-01 23:14:47 +00:00
|
|
|
printf("%d %d\n", SHRT_MAX, SHRT_MIN);
|
2020-12-05 01:47:27 +00:00
|
|
|
// long
|
2020-12-01 23:14:47 +00:00
|
|
|
printf("%ld %ld\n", LONG_MAX, LONG_MIN);
|
2020-12-05 01:47:27 +00:00
|
|
|
// long long
|
2020-12-01 23:14:47 +00:00
|
|
|
printf("%lld %lld\n", LLONG_MAX, LLONG_MIN);
|
2020-12-05 01:47:27 +00:00
|
|
|
// extra
|
2020-12-01 23:14:47 +00:00
|
|
|
printf("%d %d %d\n", FOPEN_MAX, TMP_MAX, FILENAME_MAX);
|
2020-12-05 01:47:27 +00:00
|
|
|
|
2020-12-01 23:14:47 +00:00
|
|
|
return 0;
|
|
|
|
}
|