Here's a clever little algorithm you can use to swap two integers without using a temporary variable.
I rediscovered this tip, by Muhammad Saied, while reviewing my
Delphi Tips micro-site.
Dunno why, but I find this strangley pleasing!
Assume we have two integers, A & B, both of which have values assigned. Swap their values like this:
<div style="text-align: left;">