QUESTION 1 Use the following declarations and statements when solving Homework 2: int m, amt, k;...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these algorithms questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Torres Investments acquired $160,000 of Murphy Corp., 5% bonds at their face amount on October 1, Year 1. The bonds pay interest on October 1 and April 1. On April 1, Year 2, Torres sold $60,000 of...
-
What does the wave function c represent?
-
In what ways is PHP similar to JavaScript?
-
Explain with a neat sketch, the working of a double acting piston pump.
-
A firm is considering three mutually exclusive alternatives as part of a production improvement program. The alternatives are as follows: For each alternative, the salvage value at the end...
-
What is relationship between the various sides of the Iron Triangle? Do you believe that it is possible to have a balance of the triangle wherein the vast majority of users are satisfied? Discuss why...
-
A beginning accounting student tried to complete a work sheet for Joyce Lee's Tax Service. The following adjusting entries were to have been analyzed and entered onto the work sheet. The work sheet...
-
Which kind of volcano is likely to form at location B? B. C Fracture zone ronch Trench Midocean D idge TOceanic crust crust Continental Lithosphere TLithosphere Asthenosphere Ascending magma Hot spot...
-
Why is American middle class shrinking (provide three reasons)? 2. How do the forces that have led to the shrinking of the middle class impact your chance of becoming (or remaining) a member of the...
-
If SM Ltd.'s current dividend is $1 and the company is reducing dividends by 1% per year, what should the price of the stock be with a cost of capital of 8%
-
2. If 8x 30 and 8x > 0, express these in a continued inequality and find its solution. - 3. Solve the following: (0) x+1 <6 (b) 14-3x1 < 2 (c) 12x+31 5
-
What role does moral courage play in confronting ethical dilemmas and standing up for principles of justice and integrity, particularly in contexts where doing so entails personal sacrifice or facing...
-
Compare and contrast the notable changes you have identified from normal work to Covid times in the FOUR (4) factors of production of your selected organisation.
-
In a random sample of six mobile devices, the mean repair cost was $60.00 and the standard deviation was $12.00. Assume the population is normally distributed and use a t-distribution to find the...
-
The graph of the sequence whose general term is an = n - 1 is which of the following? [8.1] A. B. TITTT 3-2-1 23.45 2.3.4
-
On September 14, 2012, Jay purchased a passenger automobile that is used 75 percent in his accounting business. The automobile has a basis for depreciation purposes of $35,000, and Jay uses the...
-
During 2012, William purchases the following capital assets for use in his catering business: New passenger automobile (September 30)........................$21,500 Baking equipment (June 30)...
-
Van makes an investment in a partnership in 2012. Van's capital contributions to the partnership consisted of $30,000 cash and a building with an adjusted basis of$70,000, subject to a nonrecourse...
-
How can you identify a real option in a decision tree?
-
In 2022, Costco Wholesale Corporation had a market capitalization of \($238\) billion, debt of \($6.5\) billion, cash of \($12\) billion, and EBIT of about \($8\) billion. If Costco were to increase...
-
In what circumstances does the real option add value?
Study smarter with the SolutionInn App