Skip to content

Instantly share code, notes, and snippets.

@hauleth
Created December 10, 2012 11:35
Show Gist options
  • Save hauleth/4250119 to your computer and use it in GitHub Desktop.
Save hauleth/4250119 to your computer and use it in GitHub Desktop.
Task with generating 2D array
int **a, i, j;
a = (int**)malloc(m*sizeof(int*));
for (i = 0; i < m; i++)
a[i] = (int*)malloc(n*sizeof(int);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment