what is an array?

Recommended Answers

All 2 Replies

A random access collection of items that have the same type.

An array is a collection of elements of same datatype.
int a[100];
the above is an example of integer array having hundred values.
accessing array...

for(c=1;c<=100;c++)
cin>>a[c]; //accepting integer values from the user.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.