asked 175k views
0 votes
Every call to a recursive function has its own code and its own set of ____ and local variables

A.
headers

B.
parameters

C.
stack

asked
User Paget
by
9.4k points

1 Answer

4 votes

Answer: Parameters

Step-by-step explanation:

Whenever a call to a recursive function is made, then the function has its own code and its own set of parameters with local variables. These parameters are within the scope of the recursive function. For example while finding the factorial of a number we are given the function with parameter such as int recursive(int n) where int n is a parameter passed into the function.

answered
User Holly Cummins
by
7.5k points