An indexed or numeric array stores each array element with a numeric index.
There are mainly two ways of creating Indexed array:
First way:
Second way:
Indexed array Example:
Output: Names in the Array: Red, Green, Blue