Printing out more values defined in stdint.h
This commit is contained in:
parent
991a9f26b4
commit
59d68e04c8
15
ex21.c
15
ex21.c
@ -10,9 +10,24 @@ int main(int argc, char *argv[])
|
|||||||
printf("sizeof(uint16_t) = %d\n", sizeof(uint16_t));
|
printf("sizeof(uint16_t) = %d\n", sizeof(uint16_t));
|
||||||
printf("sizeof(int32_t) = %d\n", sizeof(int32_t));
|
printf("sizeof(int32_t) = %d\n", sizeof(int32_t));
|
||||||
printf("sizeof(uint32_t) = %d\n", sizeof(uint32_t));
|
printf("sizeof(uint32_t) = %d\n", sizeof(uint32_t));
|
||||||
|
#if defined(_M_X64) || defined(__amd64__)
|
||||||
printf("sizeof(int64_t) = %d\n", sizeof(int64_t));
|
printf("sizeof(int64_t) = %d\n", sizeof(int64_t));
|
||||||
printf("sizeof(uint64_t) = %d\n", sizeof(uint64_t));
|
printf("sizeof(uint64_t) = %d\n", sizeof(uint64_t));
|
||||||
|
#endif
|
||||||
|
|
||||||
|
printf("INT8_MAX = %d\n", INT8_MAX);
|
||||||
|
printf("INT16_MAX = %d\n", INT16_MAX);
|
||||||
|
printf("INT32_MAX = %d\n", INT32_MAX);
|
||||||
|
#if defined(_M_X64) || defined(__amd64__)
|
||||||
|
printf("INT64_MAX = %d\n", INT64_MAX);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
printf("INT8_MIN = %d\n", INT8_MIN);
|
||||||
|
printf("INT16_MIN = %d\n", INT16_MIN);
|
||||||
|
printf("INT32_MIN = %d\n", INT32_MIN);
|
||||||
|
#if defined(_M_X64) || defined(__amd64__)
|
||||||
|
printf("INT64_MIN = %d\n", INT64_MIN);
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user