The elementary approach for
exchanging the contents of two memory registers,
A and B,
is to declare a third register, say,
C,
and then:
|
When three consecutative "Exclusive-Or" operations
are performed on the contents of two memory registers,
the effect is to exchange the contents of the two memory registers.
continue onto the Second Assignment...
Enter a value for A, B, and then click Exchange.
Exchanging Values
[
Introduction ][
Theorem ]
[
First Assignment ][
Second Assignment ][
Third Assignment ]
Other Links
[
Non-Numerical Arithmetic ][
Boundary Mathematics ]
[
Java Meets the Laws of Form ][
Form and Substance ]