Array in C++ and 3-tuple representation of sparse Matrics
One-Dimensional Arrays An array is essentially a finite ordered set of similar elements stored in contiguous memory locations. The simplest form is a one-dimensional array, declared with the general syntax: data_type array_name[expression] ; Exa…