35
Question Question 29
What are different types of arrays? Give examples of each array type.
Arrays are of different types :
- One-dimensional array — It comprises of finite homogeneous elements.
- Multi-dimensional arrays — It comprises of elements, each of which is itself an array. A two-dimensional array is the simplest of multidimensional arrays, having two indices (rows and columns).