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 (n-j) + j

C.
 m x(j -1) + i
 
D.

n x(m-i) + j

 

Answer : C

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.