Array in data structure

 Array in data structure

An array is  defined  as a set finite  ­­  of  homogenous  element or data items .

it means an array  can  contain one type  of data only either all integer , all floating point  numbers or all characters.

Properties of array

It has three array

  1. Finite
  2. Order
  3. Homogenous

Finite

An array is finite because it contains only limited number of elements.

Order

 All the elements are stored one by one , in contiguous  location of computer memory in a linear order and fashion

Homogenous 

All  the elements of an array are of  same  data types only  and hence  it is termed as collection of homogenous