#include <iostream>
#include <cstring>
#include <cstdlib>
using namespace std;
void sort(const char *, const char *);
int main()
{
const char *str[2] = {"test", "array"};
cout<<str[0]<<endl;
cout<<str[1]<<endl;
sort(str[0], str[1]);
cout<<str[0]<<endl;
cout<<str[1]<<endl;
system("pause");
return 0;
}
void sort(const char *ch1, const char *ch2)
{
const char *temp = ch1;
ch1 = ch2;
ch2 = temp;
}