SyntaxFix
Write A Post
Hire A Developer
Questions
malloc will do.
int rows = 20; int cols = 20; int *array; array = malloc(rows * cols * sizeof(int));
Refer the below article for help:-
http://courses.cs.vt.edu/~cs2704/spring00/mcquain/Notes/4up/Managing2DArrays.pdf