问答题#define SIZE 4 main() int n[SIZE]=8,3,4,1; int i,j; for(i=0;i<SIZE;i++) printf( %d ,n[i]); for(j=1;j<=n[i];j++)printf( * ): printf( n );
问答题void LE(int*a,int b ) int x=*a: printf( %d t%d n ,*a,b ); *a=b;b=x; main() int x=10,y=25; LE(&x,y); printf( %d t%d n ,x,y);
问答题void main() int i,a[5],*p; for(i=4;i>=0;i--):*(a+i)=i; for(p=a;p<a+5;p++)printf( %d t ,*p); printf( n );
填空题计算a、b、C中最小值的条件表达式为______。
问答题#include<stdio.h> int f1(int x,int y)return x>y x:y;) int f2(int x,int y)return x>y y:x; main() int a=4,b=3,c=5,d=2,e,f,g; e=f2(f1(a,b ),f1(c,d ));f=f1(f2(a,b ),f2(c,d )); g=a+b+c+d-e-f; printf( %d,%d,%d n ,e,f,g);