设为首页 加入收藏

TOP

第 16 章 C 预处理器和 C 库(预定义宏)
2018-10-21 14:13:15 】 浏览:32
Tags:处理器 定义
 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.\n", __FILE__);
12     printf("The data is %s.\n", __DATE__);
13     printf("The time is %s.\n", __TIME__);
14     //printf("The version is %ld.\n", __STDC__);
15     printf("This is line %d.\n", __LINE__);
16     printf("This function is %s\n", __FUNCTION__);
17     
18     why_me();
19 
20     return 0;
21 }
22 
23 void why_me()
24 {
25     printf("This function is %s\n", __FUNCTION__);
26     printf("This is line %d.\n", __LINE__);
27 }
predef.c

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇7-27 兔子繁衍问题(15 分) 下一篇undefined reference to `omp_get..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目