Swapping variables

The contents of two variables can be swapped using a simple algorithm. All that is required is the introduction of a third variable.

Example code – swapping two variables     show

Back to index

mph@ghscomputing.co.uk

Updated 09 December 2018