Reverse a stack using recursion

Why we are using ‘&s’ in line 5 & 19?

hello @gambhirrahul0

first read about pass by value and pass by refrence in c++ .
and then that & will make sense to u

Okay, I will. Thanks.

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.