The C function main() invokes the function cogito(), which invokes ergo() which
ID: 3576954 • Letter: T
Question
The C function main() invokes the function cogito(), which invokes ergo() which invokes sum(). Using the gdb debugger, the process is stopped in sum() on a 64-bit Intel machine. The auto variable x in sum() is at -4(%rbp). The auto variable y in ergo() is at -8 (%rbp). The auto variable z in cogito() is at -4 (%rbp). The current value in %rbp is 0 times 8840. The contents of memory location 0 times 8840 is 0 times 8950. The contents of memory location 0 times 8950 is 0 times 9230. The contents of memory location 0 times 9230 is 0 times 9340. What is the address of the auto variable x in sum()? What is the address of the auto variable y in ergo()? What is the address of the auto variable z in cogito ()?Explanation / Answer
Address of auto variable x in sum() 0x8950
Address of auto variable y in ergo() is 0x9230
Address of auto variable z in cogito is 0x9340
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.