Question: What is the output of the following function call? //function body int factorial(int n) { } int product=0; while(n > 0) { product =

What is the output of the following function call? //function body int factorial(int n) { } int product=0; 

What is the output of the following function call? //function body int factorial(int n) { } int product=0; while(n > 0) { product = product* n; 11- -. } return product. //function call cout < factorial (4);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The image displays a C function named factorial intended to calculate the factorial of a given integ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!