strcpy()的高级属性
#include<stdio.h>#include<string.h>
#define SIZE 40
#define WORDS "beast";
int main(void)
{
char *orig = WORDS;
char copy[SIZE] = "Be the best that you can be.";
char *ps;
puts(orig);
puts(copy);
ps = strcpy(copy + 7, orig);
puts(copy);
puts(ps);
system("pause");
return 0;
}
//红色字体的那行代码,ps = strcpy(copy + 7, orig);赋值给ps后输出的ps为什么是beast?谢谢!