-
Notifications
You must be signed in to change notification settings - Fork 125
/
Copy path2.5.1.c
24 lines (23 loc) · 814 Bytes
/
2.5.1.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdio.h>
#include <limits.h>
int main() {
printf("CHAR_BIT: %d\n", CHAR_BIT);
printf("CHAR_MAX: %d\n", CHAR_MAX);
printf("CHAR_MIN: %d\n", CHAR_MIN);
printf("SCHAR_MAX: %d\n", SCHAR_MAX);
printf("SCHAR_MIN: %d\n", SCHAR_MIN);
printf("INT_MAX: %d\n", INT_MAX);
printf("INT_MIN: %d\n", INT_MIN);
printf("UINT_MAX: %u\n", UINT_MAX);
printf("SHRT_MAX: %d\n", SHRT_MAX);
printf("SHRT_MIN: %d\n", SHRT_MIN);
printf("USHRT_MAX: %d\n", USHRT_MAX);
printf("LONG_MAX: %ld\n", LONG_MAX);
printf("LONG_MIN: %ld\n", LONG_MIN);
printf("ULONG_MAX: %lu\n", ULONG_MAX);
printf("LLONG_MAX: %lld\n", LLONG_MAX);
printf("LLONG_MIN: %lld\n", LLONG_MIN);
printf("ULLONG_MAX: %llu\n", ULLONG_MAX);
printf("MB_LEN_MAX: %d\n", MB_LEN_MAX);
return 0;
}