#include #include main() { char p[20]={'a','b','c','d'},q[]=
来源:学生作业帮 编辑:搜搜考试网作业帮 分类:综合作业 时间:2024/06/05 07:20:23
#include #include main() { char p[20]={'a','b','c','d'},q[]="abc",r[]="abcde";
7. 有以下程序
#include
#include
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
详细解释不懂得不要瞎答
#include
#include
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
详细解释不懂得不要瞎答
#include #include main() { char p[20]={'a','b','c','d'},q[]=
#include main(){ static char *a,*b="vhgfj";static char*c=a;f
#include main() { char c[][6]={{" *"},{" * *"},{"* *"},{" *
#include main() { unsigned char a=8,c; c=a>>3; printf("%d\n"
详解下面的程序题.#include void main(){ char *p,*q;p=(char *)malloc(s
#include main() {char ch; ch='A'+'5'-'3'; printf("%d,%c\n",c
#include main(){char a,b; int c; scanf("%c%c%d",&a,&b,&c);pr
#include void main( ) { char c1='a',c2='b',c3='c',c4='\101',
#include void main() {char c1='a',c2='b',c3='c',c4='
c 语言一道小问题#include int main(){char str[ ]= "Hello";char *p=st
C++用指针构造回文#include#includevoid main(){ char a[20]={0},*p1,*p
main() { #include char *p="ABC"; printf("%d",strlen(p)+*p);