printf(\50.\\n\while(again) {
printf(\number==>\scanf(\printf(\number is %d \\n\if(num>=50) again=TRUE; else
again=FALSE; } }
题目:宏#define命令练习(2)
___________________________________________________________________
程序源代码: #include \#define exchange(a,b) { \\
/*宏定义中允许包含两道衣裳命令的情形,此时必须在最右边加上\ int t;\\ t=a;\\ a=b;\\ b=t;\\ }
void main(void) { int x=10; int y=20; printf(\y=%d\\n\exchange(x,y);
printf(\}
题目:宏#define命令练习(3)
___________________________________________________________________
程序源代码: #define LAG > #define SMA < #define EQ ==
#include \void main() { int i=10; int j=20; if(i LAG j)
printf(\else if(i EQ j)
printf(\else if(i SMA j)
printf(\else
printf(\value.\\n\}
题目:#if #ifdef和#ifndef的综合应用。
___________________________________________________________________
程序源代码: #include \#define MAX
#define MAXIMUM(x,y) (x>y)?x:y
#define MINIMUM(x,y) (x>y)?y:x void main() { int a=10,b=20; #ifdef MAX
printf(\%d\\n\
#else
printf(\%d\\n\#endif #ifndef MIN
printf(\%d\\n\#else
printf(\%d\\n\#endif #undef MAX #ifdef MAX printf(\
larger one is %d\\n\#else
printf(\%d\\n\#endif #define MIN #ifndef MIN printf(\