How do I insert a 1D array into a 2D arary?

Writing a program that insert a 1d array into a specific spot in a 2d array
How do I insert this 1 array?

Thank you!
Last edited on
As far as I'm aware, there's no way to "insert" one array into another, even if one isn't declared. You could, however, write a loop that copies each element of one array into another. Keep in mind that 2d arrays are arrays of arrays. What this means is that the first dimension of a 2d arrays is, in effect, an array of pointers to the 2nd dimension arrays. There MIGHT be a way to use that to do some sort of quasi-insertion, but if so it's beyond my knowledge.
Topic archived. No new replies allowed.