for(n=2; n 10ijƳ main() {int a, b, c; scanf(%d %d, &a,%b ); c= max (a, b); printf(a=%d b=%d max=%d\\n, a, b, c); } int max(x, y) int x,int y ; {int z; if(x>y) z=x; else z=y; return z ; } 11 2,5,1,2,3,-2 main() {int a=3, b=2, c=1; c-=++b; b*=a+c; {int b=5, c=12; c/=b*2; a-=c; printf(%d, %d, %d,, a, b, c); a+=--c; } printf(%d, %d, %d, a, b, c); } 12findmaxsֵΪԪص±꣬Ԫصĸtˣա findmax(int s[ ], int t) {int k, p; for(p=0, k=p; p if(s[p]>s[k]) p=k ; return k; } 13 7 fun(int x) {int p; if(x= =0||x= =1) return(3); p=x-fun(x-2); return p; } main() {printf(%d\\n, fun(9));} 14funĹǣʹһַţա void fun(char str[ ]) {char m; int i, j; for(i=0, j=strlen(str); i< strlen(str) ; i++, j--) {m=str[i]; str[i]= str[j-1] ; str[j-1]=m; } printf(%s\\n, str); } ھ Ԥ һ ѡ 1˵ȷǣ A) #defineprintfC C) printfC䣬#define 2³ǣ #define f(x) x*x main( ) {int a=6, b=2, c c=f(a)/f(b) printf(\ } A) 9 B) 6 C) 36 3гִкǣ #define MA(x) x*(x-1) main() {int a=1, b=2; printf(\ A) 6 B) 8 C) 10 4³ǣ #define M(x, y, z) x*y+z main() {int a=1, b=2, c=3; printf(\} A) 19 B) 17 C) 15 5³ǣ #define SQR(X) X*X main() B) #defineC䣬printf D) #defineprintfC D) 18 D) 12 D) 12 {int a=16, k=2, m=1; a/=SQR(k+m)/SQR(k+m); printf(\} A) 16 B) 2 C) 9 D) 1 6³ #define N 2 #define M N+1 #define NUM 2*M+1 main() {int i; for(i=1; i<=NUM; i++) printf(%d\\n, i); } M=3,NUM=6 óеforѭִеĴǣ A) 5 B) 6 C) 7 7³ǣ #include #define MIN(x, y) (x)< (y)?(x):(y) main() {int a, b, c; a=20;b=10; c=5*MIN(a, b); printf(%d\\n, c); } A) 20 B) 200 C) 10 8Уȷǣ A) ijһֵ main() {int a; a=pp(); printf(%d,a); } void pp() { ? } B) ³нΪ1,3,5,7 main() {static int a[4]={1,3,5,7}; printf(%d,%d,%d,%d\\n,a); } C) ǵȼ۵ for(;(c=getchar())!=?\\n?;printf(%c\\n, c)); for(;(c=getchar())!=?\\n?;) printf(%c\\n, c); D) ³еPRINTһ #define PRINT(V) printf(V=%d\\t, V) D) 8 D) 50 main() {int a,b; a=1; b=2; PRINT(a); PRINT(b); } 9#includeУȷһǣ A) #include[string.h] B) #include{math.h} C) #include(stdio.h) D) #include 10궨#define PI 3.1415926ǣָñʶPIһ A) B) ַ C) ˫ D) 11ûijҪʹC⺯еѧʱӦڸԴļʹõincludeǣ A) #include scanf(%d,%d,&a,&b); printf(%d\\n,SURPLUS(a,b)); } A) 60 B) 13 C) 73 D) 8 13ļ1ļ2ļ2Ҫõļ3ݣļ3Ҫõļ4ݣļ1#includeֱļ2ļ3ļ4й⼸ļ˳Уȷһǣ A) ļ4Ӧļ3֮ǰļ3Ӧļ2֮ǰ B) ļ2Ӧļ3֮ǰļ3Ӧļ4֮ǰ C) ļ3Ӧļ2֮ǰļ2Ӧļ4֮ǰ D) ֵȺ˳ 14ĸУͬǣ A) #define MAX(a,b) ((a)>(b)?(a):(b)) main() {int a,b,c; scanf(%d,%d,%d,&a,&b,&c); printf(%d\\n,MAX(MAX(a,b),c)); } B) main() {int a,b,c; scanf(%d,%d,%d,&a,&b,&c); printf(%d\\n,max(a,b,c)); } max(int x,int y,int z)