1.

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

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};



Discussion

No Comment Found

Related InterviewSolutions