Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

create n number of arrray in c

int n,i;

//enter n

int **array = malloc(sizeof(int*)*n);

for(i=0;i<n;i++)
  array[i] = malloc(sizeof(int)*64);

 /* Do Stuffs*/


/* Free Memory */  
for(i=0;i<n;i++)
  free(array[i]);

free(array);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #number #arrray
ADD COMMENT
Topic
Name
2+6 =