this function just swaps two values without using a third variable to store a temp-value. Not very useful, but interesting nonetheless.
void swap(int * a, int *b)
{
a = a xor b;
b = b xor a;
a = a xor b;
}
Results 1 to 24 of 24
Threaded View
|
Click Here to Expand Forum to Full Width |