An array is a collection of logically related variable of identical data type that shares a common name. It is used to handle large amount of data, without the need to declare many individual variables separately. The array elements are stored in a contiguous memory locations. All the array elements must be either of any simple data types like int,float,char,double etc. or they can be any user defined data types like structure and objects. Each array element is accessed and manipulated using an array name followed by a unique index or subscript that specifies the position within the array.
Array must be defined before it can be used to store information.Arrays are defined in the same manner as that of basic types except that each array name must be associated with its size specification.The size specification specifies the maximum number of elements that can be stored in an array. that are usually represented as
int marks [ 10] ;
where in is the data type , marks is the name of the array and [10] is the size of the array enclosed in square brackets.
More about arrays
One Dimensional Array
Two Dimensional Array
What is Bound Checking ?
Passing of Arrays to Functions
More about arrays
One Dimensional Array
Two Dimensional Array
What is Bound Checking ?
Passing of Arrays to Functions
Post a Comment