1,409 views
1 1 vote

how the answer is 23699?

For column major order I get answer as 80039.

Even if i go by row major order the answer I get is 23599

1 Answer

0 0 votes
I'm not into formulas.
first I changed the base address from A[1,1,1] to A[0,0,0] for ease of calculation so now I need to calculate A[19,19,29]
Then I go into the required 2D Matrix which is the 19th matrix where each matrix is of size 30x40 hence 19x30x40
Then I check if its col major or row major, since column major I go to reqd col which is 29th column crossing 30 elements of each row ie 29x30
Now i'll proceed to the 19th row ie 19
19x30x40 + 29x30 + 19
Position:
Show:

Related questions

1 1 vote
0 0 answers
743
743 views
Human asked Oct 8, 2018
743 views
They have give option c as the answer. But for me both option b and d seems correct? Can someone please clarify.
0 0 votes
1 1 answer
1.4k
1.4k views
Hirak asked May 25, 2019
1,366 views
Minimum number of tables required to represent the relation R where the $A_n$ stands for the primary key of each entity is ___________
2 2 votes
1 1 answer
2.7k
2.7k views
Hirak asked May 21, 2019
2,720 views
.Given an array of distinct integers A[1, 2,…n]. Find the tightest upper bound to check the existence of any index i for which A[i]=i.Ans should be O(log n) right by doin...
2 2 votes
0 0 answers
418
418 views