Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

dynamically create matrix c

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

for(i=0; i<N; i++){
    A[i] = (int *)malloc(N * sizeof(int));
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dynamically #create #matrix
ADD COMMENT
Topic
Name
4+5 =