Created
January 23, 2023 05:34
-
-
Save hackjutsu/ff3f9014700580f0094a2bdf3b3c9837 to your computer and use it in GitHub Desktop.
[test C highlighting] #test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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