introduction of array / what is array in c++/ what is array in programming

 

ARRAY

Array

  • it is a reference data type.
  • It can hold several items of the same type that stored at a contiguous memory location.
  •  It consists of contiguous memory locations.
  •  It works on the index number. Since it holds all items on an index basis.
  • Its index number is starting with 0(zero) and last with size-1 or length-1 i.e. if length/size of array is 5 then its index number will be {0,1,2,3,4}. Here it is clear that the last index will be 5-1=4.it means that size-1/length-1.
  • It is used to handle multiple values of the same type at a time.

Types of Array

There are two types of Array such as-

  • One-dimensional Arrays/single-dimensional Array. 
  • Double-dimensional Arrays/Multi-dimensional Array

Comments

Popular posts from this blog

HTML

Administration of the Internet

FUNDAMENTAL OF COMPUTER