填空题

下面程序的运行结果是 【17】 。
#define N 10
#define s(x) x*x
#define f(x) (x*x)
main()
int i1,i2;
i1=1000/s(N); i2=1000/f(N);
printf("%d %d\n",i1,i2);

【参考答案】

1000 10
<上一题 目录 下一题>
热门 试题

填空题
fun函数的功能是:首先对a所指的N行N列的矩阵,找出各行中的最大数,再求这N个最大值中最小的那个数并作为函数值返回。请填空。 #include <stdio.h> #define N 100 int fun(int(*a)[N]) int row,col,max,min; for(row=0;row<N;row++) for(max=a[row] [0],col=1;col<N;col++) if( 【13】 )max=a[row][col]; if(row==0)min=max; else if( 【14】 )min=max; return min;
填空题
若有如下程序: main() int x=4;y=3,Z=2,t; t=x<y<z; printf( %d n ,t); 则程序运行后的输出结果是 【10】 。
相关试题
  • 以下程序运行后输入3,abcde<回车>,则...
  • 设有以下结构体类型: struct st char ...
  • 下面程序的运行结果是 【18】 。 void...