Code:
int r, c;
cin >> r >> c;
int matrix[r][c];
I don't understand the idea behind runtime allocation. The aim is to allocate memory during runtime but in the above section of code we are doing the same.
When this part of code is run, the inputs sizes are given during runtime and matrix is allocated memory according to the size of rows and columns, so how is it static or compile time allocation?