Posts by george • 1 point
1 post
-
0
votes3
answers123
viewsA: problem with inversion of values of a vector
Would that be? #include <stdio.h> #include <stdlib.h> int posicao(int *v, int tam, int num) { int pos, i=0; for(; i < tam; i++) { if(v[i] == num) { pos = i; break; } } return pos; }…