Bubble sort through recursion

in the fun why did he wrote return before the funtion. Not able to understand when to write return + fun and only fun name.

Lets take this example

fun1()
{
return 1;
}
fun2()
{
return fun1();
}
fun3()
{
fun1;
}


When fun2 executes, it returns the value 1 returned by fun1.
When fun3 executes, it just calls fun1 which returns 1 but this 1 isn’t used anywhere.
When you want to return a value returned by another function, you write return fun();
When you just want to call a function , you write fun();

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.