realloc dynamic array c code example
Example 1: malloc int array c
int array_length = 100;
int *array = (int*) malloc(array_length * sizeof(int));
Example 2: array 2d dynamic allocation c++
int** a = new int*[rowCount];
for(int i = 0; i < rowCount; ++i)
a[i] = new int[colCount];