+ 2
Arrays
What is the use of 2d arrays in c++
9 Respostas
+ 19
2d-array is array of 1d arrays , it is generally used to store data in matrix form (in form of rows & columns) , For more information : https://www.quora.com/What-is-the-advantage-of-a-double-dimensional-array-over-a-single-dimensional-array
+ 3
You can use 2d arrays in matrix storage. Usually, we may use them nicely while multiplying 2 matrixes, adding and subtracting from each other. So it is nice to use 2d arrays in matrix operations. Make, for ex. i rows, j columns of the matrixes. I personally used when studying matrix mulpitplications in visual basic in visual studio.
+ 2
if you make list of mark of student and name the it difficult from 1D array
and if you declare 2D array then it is easy to access input and thinking is easy
ex. matrix or determinate
+ 2
if you want to store Strings in an array you must define a 2d array. a 2d array is an array of arrays
+ 1
A two dimension array hold one or more array
+ 1
If u want to store string u should use 2d array
+ 1
Multidimensional arrays store data like weather forecasting etc in the matrices format.
+ 1
Two Dimensional array in C++ is an array that consists of more than one rows and more than one column. In 2-D array each element is refer by two indexes.
0
if you want acesss an arry by number and and for exmaple 0 or 1 and it could be number or student name and let say arry [1] is stuudent name when you use the print line method for java that would print the name of the student based on the arry number