Suppose a program is accessing an 5-d array a[5][5][5][5][5],
what is the order of the array if I want to present it in a one-dimentional array?

I'm not sure I understand the question. What do you mean by the "order" of the array? Do you mean how to traverse a 1D array of 3125 elements as if it were a 5D array of size 5 for each dimension? Or do you mean how a 5D array might store those elements in sequential memory? Or something else?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.