7. 有以下程序
#include <stdio.h>
#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 %d\n”,sizeof(p),strlen(p));
}
程序运行后的输出结果是( C )。
A)20 9 B) 9 9 C) 20 11 D)11 11
详细解释不懂得不要瞎答
温馨提示:答案为网友推荐,仅供参考