#include <stdio.h>
void Swap(char *ch1,char *ch2)//we need to take pointer here then only you can able to swap the characters
{
*ch1=*ch1+*ch2-(*ch2=*ch1);
}
int main()
{
char ch1,ch2;
printf("enter any two characters");
scanf("%c %c",&ch1,&ch2);
Swap(&ch1,&ch2);
printf("%c,%c\n",ch1,ch2);
printf("%d,%d\n",ch1,ch2);
return 0;
}