Vectors of Structures:
In numerous applications, involving database applications, information generally would be stored in the vector of structures, instead of in individual structure variables. For illustration, if the Computer Super Mart is storing information on all the software packages which it sells, it would likely be in a vector of structures, the illustration is as shown below,
In this illustration, the packages are vector which has three elements. It is shown as a column vector. Each and every element is a structure consisting of four fields, item_no, price, cost, and code. It may look like a matrix with rows and columns, but it is rather a vector of structures.