The elements of the triangular array are stored as a vector in the order…
2018
The elements of the triangular array are stored as a vector in the order A[1,1], A[2,1], A[2,2], A[3,1], A[3,2], A[3,3], … , A[n,n]. Assuming that A[1,1] is stored at location 1, addressing function for A[i, j] is given by:
Attempted by 535 students.