填空题
以下函数rotate的功能是:将a所指N行N列的二维数组中的最后一行放到b所指二维数组的第。列中,把a所指二维数组中的第0行放到b所指二维数组的最后一列中,b所指二维数组中的其他数据不变。
# define N 4
void rotate(int a[] [N] ,int b[] [N] )
int, i,j;
for(i=0;i<N;i++ )
b[i] [N-1] =
【18】
;
【19】
=a[N-1][i];
【参考答案】
a[0][i] b[i][0]
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序运行后的输出结果是 【17】 。#include <stdio.h>main ( ) char c;int n = 100; float f= 10:double x: x=f*=n = (c=50); printf( % d% f n ,n,x);
点击查看答案&解析
填空题
以下函数sstrcat的功能是实现字符串的连接,即将t所指字符串复制到s所指字符串的尾部。例如:,所指字符串为abed,t所指字符串为efgh,调用函数sstrcat后s所指字符串为 abcdefgh。请填空。 #inehde <stdio.h> #include <string.h> void sstuat(char * 9,char *t) int n; n = strlen (s); while(*(s+n) = 【14】 )s++; t++;
点击查看答案&解析
相关试题
有以下程序:#include <stdio, h>#d...
有以下程序: #include <stdio.h> m...
有以下程序:#include <stdio, h>mai...
有以下程序:#include <stdio, h>mai...
有以下程序:#include <stdlo.h>main...