设char strl[7]="ABCDEF",str2[5]="xyz";;则执行语句: printf("%d",strlen(strcpy(str1,str2))); 后的输出是______。

admin2010-04-24  16

问题 设char strl[7]="ABCDEF",str2[5]="xyz";;则执行语句:
   printf("%d",strlen(strcpy(str1,str2)));
   后的输出是______。

选项

答案3

解析 strcpy()是将字符串str2复制到str1中,且str1中原有的字符将被覆盖。
转载请注明原文地址:https://kaotiyun.com/show/cJAx777K
0

最新回复(0)