Here I have tried to make a function which may swap two values without a third variable. What other implementation might work to do so other than the one stated below?
void swap(int* x, int* y)
{
(*x)=(*x)+(*y);
(*y)=(*x)-(*y);
(*x)=(*x)-(*y);
}