选择题:●已知有二维数组A[0..n-1][0..n-1],其中当i+j=n时,A[i][j]≠0,现在要将A数组压缩存储到一维数组T[

  • 题目分类:软考初级
  • 题目类型:选择题
  • 查看权限:VIP
题目内容:
●已知有二维数组A[0..n-1][0..n-1],其中当i+j=n时,A[i][j]≠0,现在要将A数组压缩存储到一维数组T[0..m],其中m>n。数组T的第一个元素T[0]=A[1][n-1] T[1]=A[2][n-2],……,依次类推,那么放入A[i][j](i+j=n)的元素是 (37) 。

(37) A.T[i+j]

B.T[i*n+j]

C.T[i]

D.T[i-1]




参考答案:

● The program and the data are kept inside the computer in a place called(73) .A. bus B. c

● The program and the data are kept inside the computer in a place called(73) .A. bus B. c

查看答案

● All modern (74) are multitasking and can support running several processes simultaneousl

● All modern (74) are multitasking and can support running several processes simultaneousl

查看答案

●将两个长度为n的递增有序表归并成一个长度为2n的递增有序表,最少需要进行关键字比较 (38) 次。(3

●将两个长度为n的递增有序表归并成一个长度为2n的递增有序表,最少需要进行关键字比较 (38) 次。(3

查看答案

● The computer you are using is protected usually by (75) .A. password B. key C. mouse D.

● The computer you are using is protected usually by (75) .A. password B. key C. mouse D.

查看答案

试题二(共 15分) 阅读以下说明和C函数,将应填入 (n) 处的字句写在答题纸的对应栏内。 【说明 1】 函

试题二(共 15分) 阅读以下说明和C函数,将应填入 (n) 处的字句写在答题纸的对应栏内。 【说明 1】 函

查看答案