Arrays in C

Share it Please
Arrays in c is a group of variables who belongs to same datatypes.we can store a bunch of data in arrays.Arrays are of any datatype.

Types of Arrays:
1.One dimensional.
2.Two dimensional.
3.three dimensional.
4.four dimensional.
5.n dimensional.

Examples of Arrays:
int x[4];  //array of integer
char a[10]; //array of characters
etc.....

A.One dimensional Arrays
Syntax: datatype array_name[size];

Example For one dimensional array:












B.Two Dimensional Arrays
Synatx: datatype array_name[size_x][size_y];

Example for two dimensional Array: