search
Log In
1 vote
147 views

             

in DS
retagged by
147 views
0
I'm getting 2412.. what exactly is meant by 4 words? 4 memory locations or something else?
0
Size is 4.

I think answer is 2716.

A[8][11][16]: A[3][3][3]

400+4[(3*11*16)+(3*16)+3]

400+4[579]

400+2316=2716
0
400 +4[(3-1)*16*11 + (3-(-10))*11 + (3- (-5))] which is 2412

1 Answer

0 votes
i am getting 5236 by colum order...400+{(13*11*8)+8*8+1}*4===5236
ago

Related questions

1 vote
1 answer
1
291 views
Given a 2D array A[40….95, 40...95] in lower triangular representation, size of each element is 1 Byte Array implemented in row major order, base address is 1000 Address of A[66][50] ?
asked Dec 11, 2018 in DS Shamim Ahmed 291 views
2 votes
0 answers
3
345 views
Q.Consider a 2 dimensional array A[40 ... 95, 40 ... 95] in lower triangular matrix representation. If the array is implemented in the memory in the form of row major order and base address of the array is 1000, then the address of A[66][50] will be ________.
asked Jan 27, 2019 in Programming Badayayash 345 views
1 vote
1 answer
4
1.1k views
In a lower triangular matrices (size 15 x 15) representation of compact single dimensional array, non-zero elements (i.e. elements of the lower triangle) of each row are stored one after another, starting from the first row. Assume each integer take 1B. The array ... the address of element a[10] [6] is______ B. [Note: Only lower triangular elements of the matrix are stored in contiguous array]
asked Oct 10, 2018 in Programming logan1x 1.1k views
...