0

What is the array

array is collection of similar data type...

18th Apr 2017, 11:02 AM
babita
1 Answer
+ 11
It is a collection of values of same datatype eg: int a [5]={1,2,3,4,5} cout <<a [2]; Output: 3 Indexing in an array starts from 0. So, first element is a [0], second is a [1] etc.
18th Apr 2017, 11:09 AM
Pixie
Pixie - avatar