Algorithms

Moderators: None (Apply to moderate this forum)
Number of threads: 402
Number of posts: 786

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Not exactly an Algorithm Posted by Netmaster on 10 Feb 2003 at 7:44 AM
If the memory cell whose address is 5 contains the value 8, what is the difference between writing the value 5 into cell number 6 and moving the contents of cell number 5 into cell number 6?
Netmaster
Report
The difference Posted by Josh Code on 20 Feb 2003 at 4:48 AM
This message was edited by Josh Code at 2003-2-20 4:51:19

: If the memory cell whose address is 5 contains the value 8, what is the difference between (writing the value 5 into cell number 6) and (moving the contents of cell number 5 into cell number 6)?
: Netmaster
:
both situations, before and after:
cell 5 has the value 8

situation 1:

cell 6 has its value set to 5

situation 2:

(cell 6).value = (cell 5).value
(cell 6).value = 8

values afterwards:

situation 1:
cell 5 has the value 8
cell 6 has the value 5

situation 2:
cell 5 has the value 8
cell 6 has the value 8





 

Recent Jobs