recursion Flashcards
(7 cards)
1
Q
recursion
A
any function that calls itself
2
Q
Activation record are:
A
stores local variables and parameters for a function.
3
Q
What are the 2 components of Activation records?
A
- return value - actual return value
2. return address - address in memory of then ext instruction to execute after the function returns.
4
Q
the return value
A
stored in the activation record; RETURN stores the value in the activation record where it can be read by the calling function
5
Q
the return address
A
memory address of the next instruction to execute when the function returns
6
Q
can u change a return address?
A
no
7
Q
System stack
A
activation records are stored on a stack within the operating system.