Professional Documents
Culture Documents
Array: Type Name (Size) Int Marks
Array: Type Name (Size) Int Marks
Array: Type Name (Size) Int Marks
Storing value in an
Array Input value for the Elements
1 2 3 4 5 1 2 3 4 5
arr[0] arr[1] arr[2] arr[3] arr[4] arr[0] arr[1] arr[2] arr[3] arr[4]
Note:- We know very well that the Pointer stored the address of another variable.
Two Dimensional Array
A two dimensional array is specified using two subscript where one subscript
denote the row and other denote the column.
Two dimensional array which can be view as array of array.
column
dimension
rows
First
Second dimension
int arr[3][5];
Rows
Col 0 Col 1 Col 2 Col 3 Col 4
column
Row 1 Arr[0][0] Arr[0][1] Arr[0][2] Arr[0][3] Arr[0][4]