I will like some help, the code used to work, now it doesn't. Help. The purpose is for the user to see the vector backwards using a recursion.
int listar(int v[5], int l);
void main(){
int vector[5]={1,2,3,4,5};
listar(vector,-1);
}
int listar(int v[5],int l){
int n=0;
if (n<=5){
cout<< listar(v, n+1)<< endl;
return v[n];
}
return v[5];