Why res is not passed by refrence

https://www.geeksforgeeks.org/factorial-large-number/#:~:text=divide%20K%20completely-,Factorial%20of%20a%20large%20number,2*1%20which%20is%20720.

why in multiply finction res is not passed my reference how did it update every time and still we get output in factorial function

hello @anubhavb11
array is always passed as pointer.
that is ,always base address of array is passed.
so whathever chnages u will make in ur function on that array.
it will be reflected on ur original array.

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.