please tell me why i am facing this error and to resolve this error
Not getting output
hello @shivamgoel150
dont return anything from pop function.
design a separte top function to get top of the stack.
the issue in ur code is ->
ur r not returning anything stack is empty (which is wrong because in function we have declared return type as int so it has to return int)
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.