0 votes 0 votes column major order formula would be a+w*[(E3L2+E2)L1+E1] if i solve getting ans 1956 but given 1513 for 3d array. Please explain how Programming in C programming-in-c + – SKMAKM asked Jul 25, 2022 • edited Jul 26, 2022 by SKMAKM SKMAKM 483 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply Shoto commented Jul 25, 2022 reply Follow Share I am also getting 1956 as answer Kindly edit your title, if this is some test series question mention test series name in the title 1 votes 1 votes Himanshu555 commented Jul 26, 2022 reply Follow Share Can you explain how you are getting 1956,I am getting 2100 ,assuming I indicate 2d array number and j indicate row number and k indicate column number. 0 votes 0 votes SKMAKM commented Jul 26, 2022 reply Follow Share https://youtu.be/0XX6CA8fnDc See the lecture above it is asking column major order so According to formula loc A[i][j][k]=base(A)+w*[(E3L2+E2)L1+E1] [Column Major Order] Effective index E1=4-0 E2 =3-0 E3=5-0 L1=ub-lb+1 L1=5-0+1=6 L2=6-0+1=7 L3=7-0+1=8 A[4][3][5]=100+8*[(5*7+3)*6+4]=100+8*(262)=1956. For multidimensional Array you can watch this video https://youtu.be/9_-WPRxZhrs 1 votes 1 votes Himanshu555 commented Jul 26, 2022 reply Follow Share OK we are getting 1956 ,if we assume I represent rowth number,j represent column number and k represent 2d arrayth number 0 votes 0 votes Please log in or register to add a comment.