Advertisement
Heretiiik

types_size.c

Oct 21st, 2015
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.83 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main (int argc, char* argv[])
  4. {
  5.     printf("signed char: %lu\nunsigned char: %lu\nint: %lu\nsigned: %lu\nsigned int: %lu\nshort: %lu\nshort int: %lu\nsigned short: %lu\nsigned short int: %lu\nunsigned short: %lu\nunsigned short int: %lu\nlong: %lu\nlong int: %lu\nsigned long: %lu\nsigned long int: %lu\nunsigned long: %lu\nunsigned long int: %lu\nfloat: %lu\ndouble: %lu\nlong double: %lu\n", sizeof(signed char), sizeof(unsigned char), sizeof(int), sizeof(signed), sizeof(signed int), sizeof(short), sizeof(short int), sizeof(signed short), sizeof(signed short int), sizeof(unsigned short), sizeof(unsigned short int), sizeof(long), sizeof(long int), sizeof(signed long), sizeof(signed long int), sizeof(unsigned long), sizeof(unsigned long int), sizeof(float), sizeof(double), sizeof(long double)
  6.    
  7.     );
  8.  
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement