Return value of function

sir jab last function call gyi tab jo value return hui uske baad ka process nahi samajh aya

@skd90650,

See first in the if block we check that if the current element is greater than the next element then it returns false.

Otherwise we go and recursively check the same for si+1 index that means recursively we check whether arr[si+1]>arr[si+2] as the si we passed in the function was actually si+1 and if this is true and this function again recursively calls the same check function with si again incremented by one .

Hope this helps.

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.