answersLogoWhite

0


Best Answer

int array[2][10][20];

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you declare an array alpha of 10 rows and 20 columns of type int?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

If you have an array that has 7 columns and 8 rows what is the total number of units in the array?

7 columns * 8 rows = 56 units


What does a 2 dimensional array do?

A two dimensional array is a one-dimensional array of one-dimensional arrays. That is, just as we can have an array of integers, we can also have an array of integer arrays. This idea can be extended such that we can have an array of two-dimensional arrays (a three-dimensional array), and so on. We typically use a two-dimensional array to represent a table of rows and columns, where each row is a one-dimensional array.


How do you initialize each element of a two-dimensional array alpha to 5?

Two-dimensional arrays are typically iterated through using nested for loops. If you had a 2-D array alpha with ints ROWS and COLS representing the number of rows and columns respectively, and ints row and col as iterators, the loop would look like this: for (row = 0; row < ROWS; row++){ for (col = 0; col < COLS; col++{ alpha[row][col] = 5; } }


What is an array for 2 times 3?

An array of 2 times 3 is a one-dimensional array of 2 elements each of which is a one-dimensional array of 3 elements. In other words, it is an array of arrays, also known as a two-dimensional array. We can imagine a two dimensional array as being a table with rows and columns. A 2 times 3 array has 2 rows and 3 columns. Each row is itself an array of 3 elements. However, we can also say that each column is an array of 2 elements.


Columns and rows in c programming?

Do you perhaps mean -- a two-dimensional array? A two dimensional array is nothing more than a one-dimensional array where every element is a one-dimensional array. int matrix[4][5]; C is a row-major language thus the first dimension refers to the number of rows. Here we have declared an array of 4 rows, where each row is an array of 5 elements of type int.

Related questions

If you have an array that has 7 columns and 8 rows what is the total number of units in the array?

7 columns * 8 rows = 56 units


What is square array?

It is an array with the same number of rows and columns.


What is an arrangement of objects in rows and columns?

Array


What does 4 by 6 array mean?

4 rows of 6 columns or 4 columns of 6 rows !


What is squre array?

A square array is an array in which the number of rows is the same as the number of columns.


What does a 2 dimensional array do?

A two dimensional array is a one-dimensional array of one-dimensional arrays. That is, just as we can have an array of integers, we can also have an array of integer arrays. This idea can be extended such that we can have an array of two-dimensional arrays (a three-dimensional array), and so on. We typically use a two-dimensional array to represent a table of rows and columns, where each row is a one-dimensional array.


What is an arrangement of objects into equal rows and columns?

Tabulated form of objects


What is a Rectangular array that is identical when its rows and columns are transposed?

symmetric matrix


A two-dimensional array of elements arranged in rows and columns is a?

matrix


How do you initialize each element of a two-dimensional array alpha to 5?

Two-dimensional arrays are typically iterated through using nested for loops. If you had a 2-D array alpha with ints ROWS and COLS representing the number of rows and columns respectively, and ints row and col as iterators, the loop would look like this: for (row = 0; row < ROWS; row++){ for (col = 0; col < COLS; col++{ alpha[row][col] = 5; } }


What is the term for when a computer generates an arrangement of data in rows and columns?

table or array


What is the formula for matrices?

A matrix is an array of elements in m rows and n columns.