Why an array is called "a homogeneous collection of data"?
Answers
Answered by
9
Answer:
They are a homogeneous collection of data elements. An array always has fixed number of elements stored in it and the elements are always of the same data type. ... The number of elements stored in the array is called as size or dimension of the array.
Explanation:
Answered by
1
An array is called "a homogeneous collection of data" since they store data of the same type.
- The various data types are : int, char, string, double , float , long , boolean etc.
- After defining the type of values the data must store, all the values that are to be entered into the array must be of same type.
- An array is a linear data structure.
- Each data in an array is stored in a contiguous memory location.
- The two components of array declaration are : the type and the name.
#SPJ3
Similar questions