Why dont we directly return a stack from the function call, instead of manipulating the original, like:
Thanks i adv!
Why dont we directly return a stack from the function call, instead of manipulating the original, like:
Thanks i adv!
Yes you can either return the stack or pass the stack by reference. There is no issue. Both will mean the same.
Okay thanks, i thought returning a stack isnt a good practice.