The recursive function fact calculates the factorial of its argument. This function, along with its x86-64 assembly, is shown below:
long fact(long n) {
if (n <= 1) {
return 1;
} else {
return n * fact(n - 1);
}
}
The addresses shown above are part of which section of memory? Instructions or Data?
During a recursive call to fact, what return address is pushed onto the stack? Answer in hex.
Where in this code is n saved before fact makes a recursive call? Give the address of the corresponding assembly instruction.