12_hashdefine.c 225 B

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