Array of Objects In C++

                                                           

                              ARRAYS

An array in C/C++ or be it in any programming language is a collection of similar data items stored at contiguous memory locations and elements can be accessed randomly using indices of an array.  



There are two types of array in C++, which are :

  1. Single-dimensional array: It is a collection of elements of the same data type that are stored in a contiguous block of memory.
  2. Multi-dimensional array: It is an array that contains one or more arrays as its elements. We will see this in the next section multidimensional arrays in C++.

Comments

Popular posts from this blog

INFORMATION COMMUNICATION AND TECHNOLOGY

INHERITANCE