填空题

下面rotate函数的功能是:将n行n列的矩阵A转置为A’,例如:


#define N 4
void rotate(int a()[N])
int i,j,t;
for(i=0;i<N;i++)
for(j=0; 【13】 ;j++)
t=a[i][j];
【14】 ;
a[j][i]=t;

【参考答案】

[13]j<i
[14]a[i][j]=a[j][i]
<上一题 目录 下一题>
热门 试题

填空题
函数fun的功能是计算xn double fun(double x,int n) int i;double y=1; for(i=1;i<=n;i++)y=y*x; return y; 主函数中已正确定义m、a、b变量并赋值,并调用fun函数计算:m=a4+b4-(a+b)3。实现这一计算的函数调用语句为 【12】 。
填空题
有以下程序 #include<stdio.h> main() char ch1,ch2;int n1,n2; ch1=getchar();ch2=getchar(); n1=ch1-’()’;n2=n1*10+(ch2-’()’); printf( %d n ,n2); 程序运行时输入:12<回车>,执行后输出结果是 【10】 。
相关试题
  • 以下sum函数的功能是计算下列级数之和。 ...
  • 以下程序的运行结果是 【19】 。 #in...
  • 下面程序的运行结果是: 【17】 。 in...
  • 以下sstrcpy()函数实现字符串复制,即将t...
  • 下列程序的运行结果是: 【16】 。 #...