Posts by Gustavo • 13 points
1 post
-
0
votes1
answer48
viewsQ: in C. I passed a vector to a function and changed it inside. Why didn’t you change my vector in the main function? because I passed a pointer
#include <stdlib.h> void matriz_transposta( int l, int c, int *matriz); int main (void){ int linha = 2, coluna = 2; int *mat = (int*)…