Difference between 1-D array and 2-D array.

sr.no 1-D array 2-D array
1 A type of array that stores a collection of similar data type in a contiguous block of memory. A type of array that stores multiple data elements of the same type in table or matrix format.
2 Also called as single dimentional array. Also called as multi dimentional array.
3 Syntax:
type arrayname[arraysize];
Syntax:
type arrayname[i][j];
i=number of rows ; j=number of columns
4 Store data in linear form like list. Store data in matrix format.
5 Example:
int a[5];
Example:
int a[2][3];