|
1 | 1 | #include <stdio.h> |
2 | 2 | #include <limits.h> |
3 | 3 |
|
4 | | -int main(){ |
5 | | - printf("One Byte is %d bit\n",CHAR_BIT); |
| 4 | +int main() |
| 5 | +{ |
| 6 | + printf("One Byte is %d bit\n", CHAR_BIT); |
6 | 7 |
|
7 | | - printf("The min of signed char is %d\n",SCHAR_MIN); |
8 | | - printf("The max of signed char is %d\n",SCHAR_MAX); |
9 | | - printf("The max of unsigned char is %u\n",UCHAR_MAX); |
10 | | - |
11 | | - printf("The min of signed short is %d\n",SHRT_MIN); |
12 | | - printf("The max of signed short is %d\n",SHRT_MAX); |
13 | | - printf("The max of unsigned short is %u\n",USHRT_MAX); |
| 8 | + printf("The min of signed char is %d\n", SCHAR_MIN); |
| 9 | + printf("The max of signed char is %d\n", SCHAR_MAX); |
| 10 | + printf("The max of unsigned char is %u\n", UCHAR_MAX); |
14 | 11 |
|
15 | | - printf("The min of signed int is %d\n",INT_MIN); |
16 | | - printf("The max of signed int is %d\n",INT_MAX); |
17 | | - printf("The max of unsigned int is %u\n",UINT_MAX); |
| 12 | + printf("The min of signed short is %d\n", SHRT_MIN); |
| 13 | + printf("The max of signed short is %d\n", SHRT_MAX); |
| 14 | + printf("The max of unsigned short is %u\n", USHRT_MAX); |
18 | 15 |
|
19 | | - printf("The min of signed long is %ld\n",LONG_MIN); |
20 | | - printf("The max of signed long is %ld\n",LONG_MAX); |
21 | | - printf("The max of unsigned long is %lu\n",ULONG_MAX); |
| 16 | + printf("The min of signed int is %d\n", INT_MIN); |
| 17 | + printf("The max of signed int is %d\n", INT_MAX); |
| 18 | + printf("The max of unsigned int is %u\n", UINT_MAX); |
22 | 19 |
|
23 | | - printf("The min of signed long long is %lld\n",LLONG_MIN); |
24 | | - printf("The max of signed long long is %lld\n",LLONG_MAX); |
25 | | - printf("The max of unsigned long long is %llu\n",ULLONG_MAX); |
26 | | - |
| 20 | + printf("The min of signed long is %ld\n", LONG_MIN); |
| 21 | + printf("The max of signed long is %ld\n", LONG_MAX); |
| 22 | + printf("The max of unsigned long is %lu\n", ULONG_MAX); |
| 23 | + |
| 24 | + printf("The min of signed long long is %lld\n", LLONG_MIN); |
| 25 | + printf("The max of signed long long is %lld\n", LLONG_MAX); |
| 26 | + printf("The max of unsigned long long is %llu\n", ULLONG_MAX); |
27 | 27 | } |
0 commit comments