下面程序的输出结果是( )。
#include
#include
int main(void)
{
char p[20] = { 'a','b','c','d' }, q[] = "abc", r[] = "abcde";
strcat(p, r);
strcpy(p + strlen(q), q);
printf("%d\n", strlen(p));
return 0;
} A.
9 B.
6 C.
11 D.
7
#include
#include
int main(void)
{
char p[20] = { 'a','b','c','d' }, q[] = "abc", r[] = "abcde";
strcat(p, r);
strcpy(p + strlen(q), q);
printf("%d\n", strlen(p));
return 0;
} A.
9 B.
6 C.
11 D.
7