Posts by bob • 13 points
1 post
-
1
votes1
answer2495
viewsQ: Function reverses numbers in array
How this function works in c reversing the numbers? void inverte(int vetor[MAX], int n) { int i,aux; for (i = 0; i < n/2; i++) { // troca posicao i por n-1-i aux = vetor[i]; vetor[i] =…