As per the given question,
Matrix array= SCORE[420][680]
Base element of the array SCORE[1][1]=1001
number of memory per words = 2
Address of SCORE[100][260]
i) When array stored in row major order
address at SCORE[100][260]=1001+2(680(100−1)+(260−1))
=1001+2(680×99+259)
=1001+135158
=136159
ii) When array stored in column major order
SCORE[100][260]=1001+2[420(260−1)+(100−1)]
=1001+217758
=218759
Comments