@Deepanshu
https://gateoverflow.in/195348/multidimensional-aaray
I didn't go through the answer in your link properly but there is only one way to find it I believe..maybe the explanation seemed clearer to you..
You can check this link.. I tried to give an idea of how it looks..
@MiNiPanda nice method.....
IS IT SAME FOR BOTH ROW MAJOR AND COLUMN MAJOR ORDER??
@lakshaysaini2013
no need to call me sir.
https://en.wikipedia.org/wiki/Row-_and_column-major_order#Address_calculation_in_general
let take A[M][N][P] ( note that all indices are starts with 0 ), and required element A[i][j][k]
i got the row major order but for column major order using the above given concept i got
k*M*N+j*M+i
I think it will help you
@Shubham Aggarwal bro ur answer is correct but i never use this method so little confused
Can anyone explain me what does this notation mean?? A[2:8,-4:1,6:10]
64.3k questions
77.9k answers
244k comments
80.0k users