Sorted or not using recursion

passing the address (a+1) through recursive function giving me compile error…but using array the problem get solved…then what is the problem with the vector while passing reference through function?

@hrit04 vectors are containers and cannot behave like arrays in this sense!
so a+1 is meaningless,
while in arrays a+1 means incrementing pointer a by one place size.

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.