填空题
下面rotate函数的功能是:将n行n列的矩阵A转置未A
T
,例如:
请填空
#define N 4
void rotate(int a[][])
{ int i,j,t;
for(i=0;i<N;i++)
for(j=0;
【19】
;j++)
{ t=a[i][j];
【20】
; a[j][i]=t; }
}
【参考答案】
j<=i a[i][j]=a[j][i]
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序的运行结果是 【17】 。#include <stdio.h>#include <string.h>typcdef struct student{ char name[10];long sno;float score;}STU;main(){ STU a={ Zhangsan ,2001,95},b={ Shangxian ,2002,90},c={ Anhua ,2003,95},d,*p=&d;d=a;if(strcmp(a.name,b.name)>0) d=b;if(strcmp(c. name, d. name)>0)d=c;printf( %1d%s n ,d.sno,p->name);}
点击查看答案&解析
填空题
已知字符’A’的ASCII码值为65,以下语句的输出结果是 【16】 。char ch=’B’;printf( %c%d n ,ch,ch);
点击查看答案&解析
相关试题
函数fun的功能是计算xn。 double fun(do...
以下程序段中与语句k=a>b (b>c 1:...
设有定义:float a=2,b=4,h=3;以...
下列有关数据库的描述,正确的是( )。
以下符合C语言语法的实型常量是( )。