请教关于函数"strcpy"的问题
条件是: char *p,str[10]= 'xyz ';
p= "abcd ";
请教下: strcpy(str+2,p);
与strcpy(str,p);
当输出结果时:printf( "%s ",str); 个是什么?
[解决办法]
xyabcd
abcd
发布时间: 2012-03-06 20:47:55 作者: rapoo
请教关于函数"strcpy"的问题
条件是: char *p,str[10]= 'xyz ';
p= "abcd ";
请教下: strcpy(str+2,p);
与strcpy(str,p);
当输出结果时:printf( "%s ",str); 个是什么?
[解决办法]
xyabcd
abcd