Printing out some type sizes while working through ex21
This commit is contained in:
parent
284f7bc843
commit
991a9f26b4
18
ex21.c
Normal file
18
ex21.c
Normal file
@ -0,0 +1,18 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
printf("sizeof(int8_t) = %d\n", sizeof(int8_t));
|
||||
printf("sizeof(uint8_t) = %d\n", sizeof(uint8_t));
|
||||
printf("sizeof(int16_t) = %d\n", sizeof(int16_t));
|
||||
printf("sizeof(uint16_t) = %d\n", sizeof(uint16_t));
|
||||
printf("sizeof(int32_t) = %d\n", sizeof(int32_t));
|
||||
printf("sizeof(uint32_t) = %d\n", sizeof(uint32_t));
|
||||
printf("sizeof(int64_t) = %d\n", sizeof(int64_t));
|
||||
printf("sizeof(uint64_t) = %d\n", sizeof(uint64_t));
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user