Void swap(var a x, var a y)
Arguments
x: First variabley: Second variable
Usage
Swap the contents of two variables of the same type.
a = 5;
b = 6;
swap(a,b);
// a = 6, b = 5
x: First variabley: Second variableSwap the contents of two variables of the same type.
a = 5;
b = 6;
swap(a,b);
// a = 6, b = 5