Array in C can be defined as a method of clubbing multiple
entities of similar type into a larger group. An array is a variable that stores multiple variable of the same data type which can be accessed individually and independently. A square bracket is linked in the end of the variable name to convert the single value variable into an array. Types of array in C
Array is mainly divided into two main categories
1. Single dimensional array 2. Multi dimensional array Each can be further classified into int,double,float or char arrays. Single dimensional array
A one-dimensional array (or single dimension array) is a
type of linear array. To create a single dimensional array a square bracket is attached to the end of the vaiable name. Accessing its elements involves a single subscript which can either represent a row or column index. Indexing starts with 0 which is the position of the first element in the array. Array with int double and float
To store multiple values in an int double or float array the
syntax below is used. Int variable_name[x] = {a,b,c,d};