首页 试题广场 > 试题详情
单选题

有以下程序
#include <stdio.h>
#include <string.h>
main()
{ char p[20]={'a', 'b', 'c', 'd'}, q[]="abc", r[]="abcde";
strcat(p, r); strcpy(p+strlen(q), q);
printf("%d\n", strlen(p));
}
程序运行后的输出结果是

  • A.11
  • B.9
  • C.6
  • D.7
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 3个回答
贡献榜
相关试题
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部