C 练习实例47
C 语言教程
· 2019-02-21 23:43:11
题目:宏#define命令练习2。
程序分析:无。
程序源代码:
// Created by www.codercto.com on 15/11/9. // Copyright © 2015年 码农教程. All rights reserved. // #include<stdio.h> #define exchange(a,b) { int t;t=a;a=b;b=t;}//注意放在一行里 int main() { int x=10; int y=20; printf("x=%d; y=%d\n",x,y); exchange(x,y); printf("x=%d; y=%d\n",x,y); return 0; }
以上实例输出结果为:
x=10; y=20 x=20; y=10
点击查看所有 C 语言教程 文章: https://www.codercto.com/courses/l/17.html
Writing Apache Modules with Perl and C
Lincoln Stein、Doug MacEachern / O'Reilly Media, Inc. / 1999-03 / USD 39.95
Apache is the most popular Web server on the Internet because it is free, reliable, and extensible. The availability of the source code and the modular design of Apache makes it possible to extend Web......一起来看看 《Writing Apache Modules with Perl and C》 这本书的介绍吧!