27_sizeof.c 255 B

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