✔ 最佳答案
Yes, you can do that. Try the following code:
int main(int argc, char* argv[])
{
char *word1="First";
char *word2="Second";
char *p;
printf("%s, %s\n", word1, word2);
// Exchange
p=word1; word1=word2;word2=p;
printf("%s, %s\n", word1, word2);
system("pause");
return 0;
}
The output will look like this:
First, Second
Second, First