displaying activation records
This commit is contained in:
@@ -145,9 +145,7 @@ for (int j=i; j<n; ++j)
|
||||

|
||||
|
||||
- Computing integer powers is defined as:
|
||||
<div style="margin-top: 10px;">
|
||||

|
||||
</div>
|
||||
|
||||
These are both examples of recursive definitions.
|
||||
|
||||
@@ -188,6 +186,7 @@ confusing since there are multiple activation records waiting for an answer from
|
||||
- This is illustrated in the following diagram of the call fact(4). Each box is an activation record, the solid lines
|
||||
indicate the function calls, and the dashed lines indicate the returns. Inside of each box we list the parameters
|
||||
and local variables and make notes about the computation.
|
||||

|
||||
- This chain of activation records is stored in a special part of program memory called the stack
|
||||
|
||||
## 7.13 Iteration vs. Recursion
|
||||
|
||||
Reference in New Issue
Block a user