Course Solutions Uncategorized (Solved) : Assume C Accessing Formula Addr J K Declared C Typex M N P Answer Row Major Addra 0 0 0 N Q32603310 . . . .

(Solved) : Assume C Accessing Formula Addr J K Declared C Typex M N P Answer Row Major Addra 0 0 0 N Q32603310 . . . .

 

assume c++ the accessing formula for addr(A[i][j][k]) If A isdeclared in C++ by

typex A[m][n][p].

I have an answer for row-major which is

addrA[0][0][0] + (i*n*e*p) + (j*e*p) + (k*e)

I think this is row-major.

I want to know col-major 3D array accessing formula.

Thank you!

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post