+ 2

Multi Dimensional Array

Is it possible to fill all the columns of multi Dimensional Array

8th Nov 2020, 6:07 AM
Kamal
19 ответов
+ 11
Kamal , to get rid of all the assumptions coming from your question, it would be a good idea to post your code here. Please put your code in playground and link it here. If you don't like to do this, give us at least an idea about the programming language you want to use, and how your filled array should look like. Thanks
8th Nov 2020, 10:25 AM
Lothar
Lothar - avatar
+ 3
Not exactly sure what you are expecting. This simple code shows 2D and 3D arrays. https://code.sololearn.com/c57A49ydj942/?ref=app https://code.sololearn.com/cuvoBbeU86W3/?ref=app
8th Nov 2020, 7:50 AM
Avinesh
Avinesh - avatar
+ 2
2D array will represent a matrix. 3D array could be considered as a matrix with multiple faces just like a Rubik's cube.
8th Nov 2020, 8:45 AM
Avinesh
Avinesh - avatar
+ 2
You are correct.
8th Nov 2020, 8:55 AM
Avinesh
Avinesh - avatar
+ 2
Kamal you can insert images by creating a post and then link that post here in the question.
8th Nov 2020, 9:44 AM
Avinesh
Avinesh - avatar
+ 2
Lothar it's not about the code it's about the Array concept...
8th Nov 2020, 11:12 AM
Kamal
+ 2
8th Nov 2020, 11:16 AM
Avinesh
Avinesh - avatar
+ 2
So you want to assign the 1D array inside of the 2D array. It can be done like this. https://code.sololearn.com/cuuoiMLk3tGf/?ref=app
8th Nov 2020, 5:22 PM
Avinesh
Avinesh - avatar
+ 1
Let say I have created 2 D array. And whenever I will try to fill column it will be filled in 2nd Dimension only and I want to use 1st and 2nd dimension together
8th Nov 2020, 7:03 AM
Kamal
+ 1
Avinesh bhai let me ask you this.., agr me 2D ya 3D how it will represent... In table form, in matrix form or in some other form ???
8th Nov 2020, 8:04 AM
Kamal
+ 1
Hmmmmm but I guess it follows arrays of arrays approach....
8th Nov 2020, 8:52 AM
Kamal
+ 1
I wish I could send you a diagram so I can elaborate my question
8th Nov 2020, 9:19 AM
Kamal
+ 1
Avinesh so you are asking me to post it to Facebook then share that link here ????
8th Nov 2020, 11:11 AM
Kamal
+ 1
Avinesh thank you let me do it right away
8th Nov 2020, 12:06 PM
Kamal
+ 1
Here is th diagram, hope you understand my question now. https://www.sololearn.com/post/744282/?ref=app
8th Nov 2020, 12:13 PM
Kamal
+ 1
Avinesh I guess it's not possible... Am I correct ???
8th Nov 2020, 5:05 PM
Kamal
+ 1
Avinesh want to assign "values" to 1D Array while using 2 D Array.
8th Nov 2020, 6:10 PM
Kamal
+ 1
Avinesh did you see my diagram ???
8th Nov 2020, 6:11 PM
Kamal
0
Jude Okeleke Sorry but I didn't get you
9th Nov 2020, 11:59 PM
Kamal