A three dimensional array in C++ is declared as int A [a] [b] [c]. Consider that array elements are stored in row major order and indexing begin from 0. Here the address of an item at the location A [r] [s] [t] computed in terms of word length w of an integer is 

1
& A [0] [0] [0] + w (b*c*s + c*r + t) 
2
& A [0] [0] [0] + w (b*c*r* + c*s + t) 
3
& A [0] [0] [0] + w (a*b*r* + c*s + t)
4
& A [0] [0] [0] + w (a*b*s + c*r + t)

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation