Frequently Asked Questions
Note: I am putting these here because students have asked them in the past, this is not a reflection of what will be on quizzes.
Q: Why are they called 2d arrays and is there such thing as a 3d array?
A: Yes, we just don't use them as much as 2D arrays.
Q: When creating 2D arrays and putting values for your array of arrays, do all the sub-arrays have to match in length or can you have as many numbers as you want without the lengths lining up?
A: Yes, a 2D array where all the lengths don't line up is called a Jagged array. We won't be using them in this class, they are a bit more difficult to set up and use.
Q: Can objects be stored in 2D arrays and is it possible to write a 2D array to a file?
A: Yes and yes.