printf("This is a test program.\n\n");
printf("Current file is: %s\n",__FILE__);
printf("Current Fun is: %s\n",__FUNCTION__);
printf("current line is %d\n",__LINE__);
printf("Current date is: %s\n",__DATE__);
printf("Current time is: %s\n",__TIME__);
输出:
![](http://hi.csdn.net/attachment/201202/15/0_1329319470z4tx.gif)