Printing out some type sizes while working through ex21

This commit is contained in:
Dan Buch 2011-10-28 08:23:31 -04:00
parent 284f7bc843
commit 991a9f26b4

18
ex21.c Normal file
View 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;
}