Skip to content

Instantly share code, notes, and snippets.

@hackjutsu
Created January 23, 2023 05:34
Show Gist options
  • Save hackjutsu/ff3f9014700580f0094a2bdf3b3c9837 to your computer and use it in GitHub Desktop.
Save hackjutsu/ff3f9014700580f0094a2bdf3b3c9837 to your computer and use it in GitHub Desktop.
[test C highlighting] #test
int func(int N, int M)
{
float (*p)[N][M] = malloc(sizeof *p);
if (!p)
return -1;
for (int i = 0; i < N; i++)
for (int j = 0; j < M; j++)
(*p)[i][j] = i + j;
print_array(N, M, p);
free(p);
return 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment