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

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

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