997 views
0 votes
0 votes

Consider 3 dimensional Array A[90] [30] [40] stored in linear array in column major order. If the base address starts at 10. The location of A[20] [20] [30] is __________ . [Assume the first element is stored at A[1][1][1] and each element take 1 B].

A(20,30,30)=10 +  30*2700+ 20 + 19 = 81049 

ans is 23699 ... where did i go wrong ? Kindly help thanks

Please log in or register to answer this question.

Related questions

1 votes
1 votes
2 answers
1
2 votes
2 votes
4 answers
2
iarnav asked May 8, 2017
2,529 views
char * a[] = "red shoes";How the space in string constant "red shoes" will be stored in 1-D array in memory?
1 votes
1 votes
1 answer
3
amitarp818 asked Oct 25, 2023
426 views
How is the address written for 3-dimensional arrays?In some answers, I saw (row, column, frame) and in others, it was (frame, row, column) Which one to follow??Also, how ...
0 votes
0 votes
1 answer
4
viral8702 asked Apr 29, 2022
493 views
A frame buffer array is addressed in row major order for a monitor with pixel locations starting from (0,0) and ending with (100,100). What is address of the pixel(6,10)?...