![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
1 /*------------------------------------- 2 predef.c -- 预定义宏和预定义标识符 3 -------------------------------------*/ 4 5 #include <stdio.h> 6 7 void why_me(void); 8 9 int main() 10 { 11 printf("The file is %s. ", __FILE__); 12 printf("The data is %s. ", __DATE__); 13 printf("The time is %s. ", __TIME__); 14 //printf("The version is %ld. ", __STDC__); 15 printf("This is line %d. ", __LINE__); 16 printf("This function is %s ", __FUNCTION__); 17 18 why_me(); 19 20 return 0; 21 } 22 23 void why_me() 24 { 25 printf("This function is %s ", __FUNCTION__); 26 printf("This is line %d. ", __LINE__); 27 }