Answers for "how to dynamically allocate a matrix in c"

C
1

dynamically create matrix c

int **A = (int **)malloc(N * sizeof(int*));

for(i=0; i<N; i++){
    A[i] = (int *)malloc(N * sizeof(int));
}
Posted by: Guest on April-29-2021

Code answers related to "how to dynamically allocate a matrix in c"

Code answers related to "C"

Browse Popular Code Answers by Language