Array
An array is a collection of items which share the same characteristics. So we can have an array of integers, array of characters, etc. The important point about arrays is that the elements of the array are located into contiguous locations of memory. This can be used to our advantage in programming.
An integer array is defined as int a[5];

As the diagram above shows, we have defined an array of type integer with six elements in it. The elements of the array are stored sequentially in the memory as shown. Hence they can be accessed by their index as a[0](first element), a[1](second element), a[2], …
Since this array is of type integer, every element is an integer and so each occupies four bytes (depends on the machine) of memory.
A character array is a special kind of array which is also known as a string. What makes the character array special is that it can be used by several functions in the string manipulation library (and also by the user defined functions) because of it’s characteristic of placing a ‘
