阅读下列程序,则在执行后,程序的运行结果为#include "stdio.h"#include "string.h"main(){ char a[30]="nice to meet you!";strcpy(a+strlen(a)/2,"you");printf("%s\n",a);}A.nice to meet you youB.nice toC.meet you youD.nice to you

阅读下列程序,则在执行后,程序的运行结果为

#include "stdio.h"

#include "string.h"

main()

{ char a[30]="nice to meet you!";

strcpy(a+strlen(a)/2,"you");

printf("%s\n",a);}

A.nice to meet you you

B.nice to

C.meet you you

D.nice to you


相关考题:

阅读下面程序,则程序的执行结果为( )。 include"stdio.h" main() {int a=10; fun(A); printf("%d\n",A);} fun(int x) {x=50;}

阅读下列程序,则在执行后,程序的运行结果为 #include"stdio.h" #include"string.h" main() { char a[30]="nice to meet you!"; strcpy(a+strlen(a)/2,"you"); printf("%s\n",a);}A.nice to meet you youB.nice toC.meet you youD.nice to you

阅读下面程序,程序执行后的结果为( )。 #include"stdio.h" main() {char*str="abcdefghijklnmopq": while(*str++!='e'); printf("%c\n",*str); }A.fB.aC.eD.a

下列程序执行后的输出结果是()。includeincludemain(){char arr[2][4]; str 下列程序执行后的输出结果是( )。 #include<stdio.h> #include <string.h> main() { char arr[2][4]; strcpy(arr[0],"you");strcpy(arr[1],"me"); arr[0][3]=''; Printf("%s\n",arr); }A.youmeB.youC.meD.err

当执行下面的程序时,如果输入ABC,写出程序输出结果 #include "stdio.h" #include "string.h" main() { char ss[10]; gets(ss); strcat(ss,"6789"); printf("%sn",ss); }

分析下面程序的运行结果()。 #include "stdio.h" #include "string.h" main() { printf("%dn",strlen("IBMn012")); }

3、阅读下列程序,则在执行后,程序的运行结果为()  #include <string.h> #include<stdio.h> int main() { char a[30]="nice to meet you!"; strcpy(a+strlen(a)/2,"you"); printf("%s\n",a); }A.nice to meet you youB.nice toC.meet you youD.nice to you

已知字符B的ACSII码值为66,下面程序的执行结果是: #include<stdio.h> main() { char ch=’A’; printf(“%c %dn”,ch,ch); }

21、以下程序执行后的结果为 。 #include "stdio.h" #include <string.h> void fun(char *s) { char a[10]; strcpy(a,"string"); s=a; } main() { char *p="gao"; fun(p); printf("%s\n",p); }A.gaoB.结果不确定C.strD.string