Computer Science, asked by sahithilakshmi4301, 11 months ago

Discuss in brief about multi dimensional array?

Answers

Answered by TEJASBHISE13
1

Answer:

multi-dimensional array is an array that has more than one dimension. It is an array of arrays; an array that has multiple levels. The simplest multi-dimensional array is the 2D array, or two-dimensional array. It's technically an array of arrays, as you will see in the code. A 2D array is also called a matrix, or a table of rows and columns.

Declaring a multi-dimensional array is similar to the one-dimensional arrays. For a 2D array, we need to tell C that we have 2 dimensions.

This example declares a 2D integer array:

int two_d[3][3];

A valid type is required (in this case int), followed by the name of the array, and the size of each dimension. In this case, we created a 2D array that's 3 by 3 (three rows and three columns). As stored in the computer's memory, the array looks like this table. Remember that C starts counting all buckets at 0!

Answered by akshaykumar10240
1

multi-dimensional array is an array with more than one level or dimension. For example, a 2D array, or two-dimensional array, is an array of arrays, meaning it is a matrix of rows and columns (think of a table).

Similar questions