Arrays in C++
An array can be defined as a sequence of data in memory, wherein all the data are of the same type, and are placed in physically adjacent locations. An array is a group of elements that share a common name, and that are differentiated from one another by their positions within the array. For example, if we have five numbers, all of which are named as x, they may be listed as: The position of each of these elements can be indicated by means of a subscript as: x1 = 65 x2 = 33 x3 = 64 x4 = 88 x5 = 5 In mathematics, a subscript is a number written to the right of the variable name, slightly below the line, and usually in small type. The subscript indicates the position of the particular elements. In C++, square brackets are used for this purpose. The method of subscripting arrays...