35_sizeof.c 217 B

123456789101112131415
  1. #include <stdio.h>
  2. int main()
  3. {
  4. char a;
  5. short b;
  6. printf("%d %d\n", sizeof(char), sizeof(a));
  7. printf("%d %d\n", sizeof(short), sizeof(b));
  8. return 0;
  9. }
  10. /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/