What are the types of arrays?
What is an array: An array is a collection of similar types of data elements at a contiguous memory location.
Types of an array: There are two types of an array.
- One dimensional array
- Multi-dimensional array (Two and three-dimensional array).
1. One-dimensional array: Array of components are arranged in list form and each element is accessed by using a single index value.
2. Multi-dimensional array: Array of components are arranged in tabular form. like rows and columns.
Comments
Post a Comment