填空题
阅读程序:
main( )
char strl[]="how do you do",str2[10];
char * p1=strl,* p2=str2;
scanf("%s”,p2);
printf("%s”,p2);
printf("%s\n",p1);
运行上面的程序,输入字符串HOW DO YOU DO 则程序的输出结果是
【15】
。
【参考答案】
[15]HOW how do you do
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
阅读程序: # include<string.h> # include<strdio.h> strle(char a[],char b[]) int num=0,n=0; while(*(a+num)!=’0’)num+ +; while(b[n]) * (a+num)=b[n];num+ +;n+ +; return(num); main() char strl[81],str2[81],* p1=strl,*p2=str2; gets(p1);gets(p2); prinf( %d n ,strle(p1,p2)); 运行上面的程序,如果从键盘上输入字符串qwerty和字符串abcd,则程序的输出结果是 【14】 。
点击查看答案
填空题
[15]HOW how do you do
点击查看答案
相关试题
以下函数creat用来建立一个带头结点的单向...
以下程序由终端键盘输入一个文件名,然后把...
[15]HOW how do you do
[12] pa [i][13] avg n