With the help of syntax, explain how arrays are initialized outside the class.
Answer:
Initialized at declaration time:
Syntax:return type identifier[size] = {values};
Eg int age[5] = {2,4,6,7,8,3};
syntax return type identifier[size][size]={elements};
eg int matrix[2][2]={2,4,5,6};