Xpode.com        Click here to Print this article.

What is an Array

An array is a data structure. It is a collection of similar type of (homogeneous) data elements and is represented by a single name.

 

It has the following features:

 

1.       The elements are stored in continuous memory locations.

2.       The n elements are numbered by consecutive numbers i.e. 1, 2, 3, . . . . . , n.

 

E.g.

An array STUDENT containing 8 records is shown below:

 

STUDENT

Ritika

Gurpreet

Anupama

Hanish

Harsh

Navdeep

Shalini

Kapil

1

2

3

4

5

6

7

8

 

                 

 

 

 

 

 

 

 

 

 

 

 



http://
http://

Contributed by:
Rohit kakria
I am software developer

Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=133

Click here to go on website