predef.c 506 B

12345678910111213141516171819202122
  1. // predef.c -- predefined identifiers
  2. #include <stdio.h>
  3. void why_me();
  4. int main()
  5. {
  6. printf("The file is %s.\n", __FILE__);
  7. printf("The date is %s.\n", __DATE__);
  8. printf("The time is %s.\n", __TIME__);
  9. printf("The version is %ld.\n", __STDC_VERSION__);
  10. printf("This is line %d.\n", __LINE__);
  11. printf("This function is %s\n", __func__);
  12. why_me();
  13. return 0;
  14. }
  15. void why_me()
  16. {
  17. printf("This function is %s\n", __func__);
  18. printf("This is line %d.\n", __LINE__);
  19. }