#include<iostream>
using namespace std;
int main()
{
char str[20]="abcdef";
int l=strlen(str);
int i,j;
for(i=0,j=l-1;i<j;i++,j--)
{
str[i]=str[i]^str[j];
str[j]=str[i]^str[j];
str[i]=str[i]^str[j];
}
for(i=0;i<l;i++)
cout<<str[i]<<" ";
return 0;
}
using namespace std;
int main()
{
char str[20]="abcdef";
int l=strlen(str);
int i,j;
for(i=0,j=l-1;i<j;i++,j--)
{
str[i]=str[i]^str[j];
str[j]=str[i]^str[j];
str[i]=str[i]^str[j];
}
for(i=0;i<l;i++)
cout<<str[i]<<" ";
return 0;
}