Answers for "dynamically create matrix 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 "C"

Browse Popular Code Answers by Language