+2 votes
in Class 12 by kratos

Write the syntax and examples of initialization of two-dimensiona array?

1 Answer

+2 votes
by kratos
 
Best answer

Syntax of initialization of two dimensional array:

Datatype arrayname [rowsize] [column size] = { value 1, value2, …., value n };

Example of array initialization with declaration:

int matrix [3] [3] = { 91, 96, 90, 94, 99, 95, 87, 92, 98};

...