Posts by Lince Potiguara • 11 points
1 post
-
1
votes1
answer46
viewsA: Recursive call that returns the beginning and end of a vector
To understand recursion we use a repetition loop to achieve the same goal. #include <stdio.h> #define TAMANHO 6 int search (int *v, int begin, int end, int value) { int i = begin; for (i =…