Hello, here is the code for bubble sort using recursion
Why we use return statement with bubble sort at line number 9. Because the function is of type void ?
Hello, here is the code for bubble sort using recursion
Why we use return statement with bubble sort at line number 9. Because the function is of type void ?
Hey @yashsharma4304
Its just another case u can split it in two steps do a call and then return
Sinc bubble is itself void so
Return bubble(…) will call bubble and then simply return
ok thanks for clearing my doubt
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.