/*-------------------------------------
predef.c -- 预定义宏和预定义标识符
-------------------------------------*/ #include <stdio.h> void why_me(void); int main()
{
printf("The file is %s.\n", __FILE__);
printf("The data is %s.\n", __DATE__);
printf("The time is %s.\n", __TIME__);
//printf("The version is %ld.\n", __STDC__);
printf("This is line %d.\n", __LINE__);
printf("This function is %s\n", __FUNCTION__); why_me(); return ;
} void why_me()
{
printf("This function is %s\n", __FUNCTION__);
printf("This is line %d.\n", __LINE__);
}
predef.c