问题详情

有以下程序:

include<strintg.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));

}

程序运行后的输出结果是( )。

A.20 9

B.9 9

C.20 11

D.11 11

参考答案
您可能感兴趣的试题