1.

Define two-dimensional array. Write its declaration syntax and give one example.

Answer»

Two dimensional array is a collection of elements of similar type that share a common name, structured in two dimensions. Each element is accessed by two index values.

Syntax:

<data-type> <array-name> [<size1>] [<size2>];

Example:

int a [ 10] [ 10];



Discussion

No Comment Found

Related InterviewSolutions