C. Notice that the calculated difference between two memory addresses (the last
ID: 3532439 • Letter: C
Question
C. Notice that the calculated difference between two memory addresses (the last two columns in the table) does not produce the same result as you might obtain by performing the subtraction by hand. Explain what the software is doing to obtain the answers that you see in the last two columns.
D. The last lines of output from the program show the addresses of two non-existent elements of one array. They are an example of the computer doing what it was told, even though what it was told makes no sense. Do the addresses match your equation from Part B?
Explanation / Answer
For in puts in last two columns base index of array is subtracted from current index of array in every for loop as current index keeps increasing within the for loop
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.