edited by
478 views
0 votes
0 votes
What is the correct interpretation of an $array[a][b][c]$?

I have solved questions where $a$ is the number of layers, $b$ number of rows and $c$ number of columns. I have also seen questions where $a$ is the number of rows, $b$ is columns and $c$ is layers. Which one to follow to solve questions in GATE exam?
edited by

1 Answer

0 votes
0 votes
I think it depends on implementation but by default use first concept that is a is number of layers ,b number of rows and c number of columns

Related questions

16 votes
16 votes
3 answers
1
shikharV asked Dec 4, 2015
15,596 views
A is an array $[2.....6, 2.....8, 2.......10]$ of elements. The starting location is $500$. The location of an element $A(5, 5, 5)$ using column major order is __________...
2 votes
2 votes
1 answer
2
shikharV asked Nov 16, 2015
2,350 views
Please solve the above problem. Given answer: D
1 votes
1 votes
1 answer
4
Na462 asked Aug 22, 2018
2,927 views
Consider array A[1..100,1..100],in which elements are stored in Z representation. An example of 5x5 such array is shown below: Base address of array = 1000,size of each e...