Posts by Eric Lau • 1 point
1 post
-
0
votes1
answer55
viewsA: C PLIS HELP --> I want to create an array in a function and return it fully filled, but in my code it returns null
Try this way: #include <stdio.h> #include <stdlib.h> char** GetMatriz(const int L, const int C) { char** matriz; matriz = (char**) malloc ( L * sizeof(char*) ); for(int i = 0; i < L;…