Consider the integer array $A\left [ 1.........100,1.......100 \right ]$ in which the elements are stored in $Z$ representation. An example of a $5\times 5$ array in $Z$ representation is shown below:
If the base address of $A$ is starting from $1000$ onwards, size of each element is $1B$ and $A$ is stored in Row Major Order, then the address corresponding to $A\left [ 100 \right ]\left [ 55 \right ]$ is ________________
There will be 252 elements before A in Z representation, which will be stored in address locations [1000 - 1251] and finally A goes to the base address of 1252.
@balchandar reddy san
how r u calculating?
I think question like this. In 1st and last rows , it took all elements. but other than these two rows, it took 1 element in each row diagonally. Am I right?