How ro return an array in recursive call?

cany ou provide me one example with code in whch array got returned in recursive call?

Never came across such code and never felt its use.
Where are you feeling that you need it? THere must be some other approach to it.
Memory limit ho jaygi itne stack calls mei itna array bhejoge toh

given an array ,i have to return an array containing the key elements using recursion?
that’s the question …

indices of that key elements

Sorry for a delayed response. saw it just now
you can return pointer to that array or return vector
int * function( ,…)
or
vector function(…)

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.