Question: Q 2 . 1 : Given the information from the GDB memory dump, what two lines get printed by q 2 ( ) ? Hint:

Q2.1: Given the information from the GDB memory dump, what two lines get printed by q2()? Hint: Try and find where the two constants are in the stack. What information in the GDB dump could you have used to find those constants, if you didn't know their actual values?
Hint: Remember that when printing a string, it prints characters at increasing memory addresses until we reach the NULL terminator (byte 0x00).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!