题目内容

4 Each element of the two-dimensional array A is a string of 6 characters, the row subscript i ranges from 0 to 8, and the column subscript j ranges from 1 to 10, so storing A requires at least ( ) bytes.

A. 90
B. 180
C. 240
D. 540

查看答案
更多问题

5 Each element of the two-dimensional array A is a string of 6 characters, the row subscript i ranges from 0 to 8, and the column subscript j ranges from 1 to 10, then the 8th column of A and the 5th row occupy ( ) bytes.

A. 54
B. 108
C. 114
D. 150

6 Each element of the two-dimensional array A is a string of 6 characters, the row subscript i ranges from 0 to 8, and the column subscript j ranges from 1 to 10, Then the address of element A[8,5] with row-major order is the same as element ( ) with column-major order.

A[3,10]
B. A[8,5]
C. A[5,8]
D. A[0,9]

7 Let A be a n-order symmetric matrix, its elements of the lower triangle (including all elements on the main diagonal) are stored in row-major order in the one-dimensional array B[1...(n+1)/2]. If the value of aij((1≤i≤j≤n)) is stored in B[k], then the calculation formula of k is ().

A. j(j-1)/2+i
B. i(i-1)/2+j
C. i(i+1)/2+j
D. j(j+1)/2+i

1 There is a symmetric matrix A of order 10, using a compressed storage method, with row-major order, a11 is the first element, its storage address is 1, each element occupies an address space, then the address of a85 is ( ).

A. 33
B. 13
C. 18
D. 40

答案查题题库