void switch(int* c,int* d){
int temp;
temp=*c;
*c=*d;
*d=*c;
}