SHARE
TWEET

Untitled

a guest Jan 12th, 2017 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. static void
  2. print_sizeof_type(void)
  3. {
  4.     puts("----------------------");
  5.     printf("sizeof(char) = %lu\n", sizeof(char));
  6.     printf("sizeof(short int) = %lu\n", sizeof(short int));
  7.     printf("sizeof(int) = %lu\n", sizeof(int));
  8.     printf("sizeof(long int) = %lu\n", sizeof(long int));
  9.     printf("sizeof(long long int) = %lu\n", sizeof(long long int));
  10.     printf("sizeof(int8_t) = %lu\n", sizeof(int8_t));
  11.     printf("sizeof(int16_t) = %lu\n", sizeof(int16_t));
  12.     printf("sizeof(int32_t) = %lu\n", sizeof(int32_t));
  13.     printf("sizeof(int64_t) = %lu\n", sizeof(int64_t));
  14.     puts("----------------------");
  15. }
RAW Paste Data
Top