This article is about a concept of array in C language.
Array is a set of similar type elements.it is an ordered set of elements stored at contigious location.Generally array is combination of rows and columns which is called its subscripts.It start from zero index.
TYPES OF ARRAY:-
Array are of two types based on dimensions:-
1.One dimension array.
ONE DIMENSION ARRAY:-
One dimension array is array type which contains one subscript.
Ex. A(2) A is a array name and it contains two elements 0 and 1 index value.
When array contains more than one subscript then it is called multidimension array.Array containing two subscript is also called two dimension array.
Ex A(2,3) A is an array which contains two subscript means 2 rows and 3 columns.Index always start from zero by default.
A Simple program to show use of array:-
Printf("enter the elements");
This is a simple program of array in which ten elements in j store in array a on contigious location.
Friends this is the simple concept of array.Array can be used to show bubble sort,selection sort etc.
Stay in touch.