Question: QUESTION 1 Use the following declarations and statements when solving Homework 2: int m, amt, k; int* ptNum, amtAddr,zAddr, ptYr, numAddr, amtAddr,ptDay ptNum =


QUESTION 1 Use the following declarations and statements when solving Homework 2: int m, amt, k; int* ptNum, amtAddr,zAddr, ptYr, numAddr, amtAddr,ptDay ptNum = &m; amtAddr = &amt; *ZAddr = 25; k = *numAddr; ptDay = zAddr; *ptYr = 1987; *amtAddr = *numAddr; *ptNum = 23 The memory of the system is illustrated below: a. Variable: ptNum Address: 500 Variable: zAddr Address: 8024 20492 c. Variable: ptDay Address: 14862 d. Variable: years Address: 694 f. Variable: amt Address: 16256 g. Variable: balance. Address: 20492 b. Variable: amtAddr Address: 564 Variable: numAddr Address: 10132 18938 Variable: pt Yr Address: 15010 694 e. Variable: m Address: 8096 Variable: firstnum Address: 18938 154 h. Variable: k Address: 24608 Match the variable name labeled a. through h. above, with the variable's value, indicated by the empty boxes above. Match the variable name labeled a. through h. above, with the variable's value, indicated by the empty boxes above. g. Variable: ptNum f. Variable: amtAddr c. Variable: ptDay b. Variable: years f. Variable: m a. Variable: amt D Variable: balance d. Variable: k a. Contents: 20492 b. Contents: 16256 c. Contents: 8096 d. Contents: 1987 e. Contents: 154 f. Contents 23 g. Contents: 25
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
