7.1.Declaration Array

There are two types of array such as:

  • One Dimensional Array

Syntax:

Data_Type Array_Name[SizeOfArray];

Example:

int arr[10];
float score[20];
char name[50];
  • Multiple Dimensional Array

Syntax:

Data_Type Array_Name[Rows,Cols];

Example:

int matrix[20][20];
int table [50][50];
Suggest Edit