This is what I have is as follows:
I would like to expand on this function so that it can be used with parameters which are pointers to any type. That is, I would like to create a function that can swap two objects of any type pointed to by two pointers. In the above example only integers can be swapped. What would be the easiest way of doing that?Code:void Swap(int *Ptr_A,int *Ptr_B)
{
int Ptr_Temp;}
Ptr_Temp=*Ptr_A;
*Ptr_A=*Ptr_B;
*Ptr_B=Ptr_Temp;

