- Home /
Array in an array?
Hello. Is it possible to have an array full of arrays? Thanks
Answer by Berenger · Jan 30, 2012 at 10:34 PM
That's called an Arrayception (or not :p).
Seriously, multidimensionnal arrays are possible yes, like int[][].
Simply for clarities sake, an array of arrays is called a jagged array. A multi-dim array is a single array that has multiple dimensions.
If I may say, nom d'une pipe ! I've always used (i + j*col) kind of things to simulate a second dimension, that's very good to know thank you :)
Answer by Tasarran · Jan 30, 2012 at 10:49 PM
I have a question here that I managed to answer my self :)
You might find this useful.
http://answers.unity3d.com/questions/209548/array-of-variable-length-arrays-js.html
Your answer
Follow this Question
Related Questions
JS: Array index not taking array.length as valid int? 2 Answers
get int based on 3 ints 0 Answers
Calculating the lowest number 3 Answers
Best Way to Load 10^8 int Array in Unity/C#? 1 Answer
Converting a string to an int 2 Answers