Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

c++ language E 14.8 Memory Locations for Exercise 11 Variable: ptNum Address: 50

ID: 3905166 • Letter: C

Question

c++ language

E 14.8 Memory Locations for Exercise 11 Variable: ptNum Address: 500 Variable: amtAddr Address: 564 Variable: zAddr Address: 8024 Variable: numAddr Address: 10132 20492 18938 Variable: ptDay . Address: 14862 Variable: ptYr Address: 15010 694 Variable: years Address: 694 Variable: m Address: 8096 Variable: amt Address: 16256 Variable: firstnum Address: 18938 154 Variable: balance Address: 20492 Variable: k Address: 24606 11. For the variables and addresses illustrated in Figure 14.8, fill in the appropriat as determined by the following statements: a. ptNamm b. amtAddramt : d. knumAddr ptYr1987

Explanation / Answer

11)

a) ptNum=&m;

since the address of m=8096

so ptNum=8096;

b)

amtAddr(address=564)=&amt;

Therefore amtAddr=16256

c)

*zAddr=25;

*20492 (address of balance) so value at 20492=25

so balance=25

d)

k=*numAddr=*18938(18938=address of firstnum)=154( value at 18938)

so k=154

e)

ptDay=zAddr

ptDay=20492

f)

*ptYr=1987;

*694 (694=address of years) so years contains the value 1987

g)

*amtAddr=*numAddr

*amtAddr=*18938=154

*amtAddr=154

*16256=154

so amt contains the value 154

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote