Posts by Fábio Silva • 21 points
1 post
-
2
votes3
answers447
viewsQ: Problem in the use of malloc and realloc
int main() { int **matriz; f(matriz); return 0; } void f(int **matriz) { int x, l=1,c=3; matriz = (int **) malloc(sizeof (int)); *matriz = (int *) malloc(3 * sizeof (int)); printf("Insira o valor de…