Factorial ncr explaination

I think in the ncr function first the function in the brackets fact(n-r) will be solved continued multiplication of function fact® and then the division function fact(n).

Will this be the execution of the call stack as I suggested as per operator rules please explain me?

@sakshi.saxena yes you are right because of higher preference of brackets

thanks in the video sir has explained as first fact(n)–>fact(n-r)*fact®
i didn’t get this.

@sakshi.saxena no issue its just for explanation

1 Like