Exercise: Flatten a 2d Array
Implement a function
int *flattenArray(Matrix matrix, int m, int n)
which
takes a 2d
m
×
n
integer matrix
returns a pointer to a dynamic 1d array made by concatenating the rows