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

User Paget
by
8.5k 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.

User Holly Cummins
by
6.9k points