In row major
Address [I, J] =B+W [n-(I-0) + (J-0)]
Where, B –Base address; W=element size; n= number of columns.
X [2] [5] = 100 + 4[6(2-0) + (5-0)]
E.Commerce
Training@balujalabs
Franchise Section
To input element of a matrix and display them.
To find highest and lowest element in an array.
20. Given an arrays X [6][6] who base address is 100. Calculate the Locations X [2][5] if each elements occupies 4 bytes and array is stored row-wise.