Thursday, 25 August 2016

ARRAYS


Array is having a large number of data of same type at a single place. The proper definition will be: An  Array is a collection of  variables of the same type that are referenced by a common(same) name.
It can be of any type : char, int, float or even user defined types.

Array are of different types:

1. One- dimensional arrays: have only one Row or column.

Syntax: type array_name[size];


2. Multi-dimensional arrays: It has both rows and columns. You can also say that having many single arrays in one array. The simplest example is Two-dimensional array but it can have more than two-dimensions.

Syntax: type array_name[rows][columns];

No comments:

Post a Comment