有以下程序
#include <string.h>
Main()
{ char p[20]={'a','b','c','d'},q[]="abc",r[]="abcde";
Strcpy(p+strlen(q),r); strcat(p,q);
Printf("%d\n", strlen(p));
}
程序运行后的输出结果是______。
A.9
B.8
C.11
D.12
正确答案是C
有以下程序
#include <string.h>
Main()
{ char p[20]={'a','b','c','d'},q[]="abc",r[]="abcde";
Strcpy(p+strlen(q),r); strcat(p,q);
Printf("%d\n", strlen(p));
}
程序运行后的输出结果是______。
A.9
B.8
C.11
D.12
正确答案是C