通过海量题库、编程比赛和实时排名,系统化提升您的编程能力。
有以下程序
#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)); }
程序运行后的输出结果是()。