Data Structures

1:

Which of the following expressions accesses the (i,j)th entry of an (m x n) matrix stored in column major form?

A.

n x (i -1) + j

B.

m x (j -1) + i

C.

m x (n-j) + j

D.

n x (m-i) + j

 

Answer : B

Explanation :

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.