Computer Science: An Overview: Global Edition (12th Edition)

Published by Pearson Higher Education
ISBN 10: 1292061162
ISBN 13: 978-1-29206-116-0

Chapter 1 - Data Storage - Section 1.2 - Main Memory - Questions & Exercises - Page 41: 2

Answer

Step 1. Move the contents of cell number 2 to cell number 1. Step 2. Move the contents of cell number 3 to cell number 2. Step 3. Move the contents of cell number 1 to cell number 3.

Work Step by Step

Step 1 erases the original value in cell number 3 when the new value is written there. Consequently, Step 2 does not place the original value from cell number 3 in cell number 2. The result is that both cells end up with the value that was originally in cell number 2. A correct procedure is the following: Step 1. Move the contents of cell number 2 to cell number 1. Step 2. Move the contents of cell number 3 to cell number 2. Step 3. Move the contents of cell number 1 to cell number 3
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.