Looking to merge two different 2D arrays of different row sizes into one long array:
int 2dArray1[][] = {
{1, 2, 3},
{4, 5, 6}};
int 2dArray2[][] = {
{10, 20},
{30, 40}};
int 1dLongArray[10];
This is where I need help in order to have the values of 1dLongarray be arranged as follows:
1, 2, 3, 10, 20, 4, 5, 6, 30, 40
How would I achieve this? Thanks in advance.
write down first three numbers
... i mean baby steps, likelook at array1, row1, position1. copy content to first empty position at destination