下列程序运行后,输出结果是______。 #include <stdio. h> #include <string. h> fun (char *w ,int n) { char t,*s1,*s2; s1=w; s2=w+n-1; while (s1<s2) { t=*s1++; *s1=*s2--; *s2=t; } } main () { char *p; p="1234567"; fun (p, strlen (p)); puts (p); }
A.1234567
B.7654321
C.1711717
D.7177171
[单选题]下列程序的输出结果是()。 include include main() {char a[]="/n123//"; p下列程序的输出结果是( )。#include<stdio.h>#include<string.h>main(){ char a[]="/n123//";printf("%d,%d/n",strlen(A) ,sizeof(A) );}A.5,6B.5,5C.6,6D.6,5
[单选题]下列程序的输出结果是______。 include include using namespace std; voi下列程序的输出结果是______。include<iostream.h>include<string.h>using namespace std;void fun(const char*s,char &C) {c=s[strlen(s)/2];}int main(){char str[]="ABCDE";char ch=str[1];fun(str,ch);cout<<
[单选题]下列程序的输出结果是()。 include include main() {char a[]="/n123//";pr下列程序的输出结果是( )。 #include<stdio.h> #include<string.h> main() { char a[]="/n123//"; printf ("%d,%d/n",strlen(a),sizeof(a)); }A.5,6B.5,5C.6,6D.6,5
[单选题]下列程序的运行结果是()。 include include main() {char*s1="abDuj"; char下列程序的运行结果是( )。#include<stdio.h>#include<string.h>main(){ char*s1="abDuj";char*s2="ABdUG";int t;t=strcmp(s1,s2) ;printf("%d",t);}A.正数B.负数C.零D.不确定的值
[单选题]下列程序的运行结果是( )。 include include main() {char*s1="abDuj";char下列程序的运行结果是( )。 #include<stdio.h> #include<string.h> main() { char*s1="abDuj"; char*s2="ABdUG"; int t; t=strcmp(s1,s2); printf("%d",t); }A.正数B.负数C.零D.不确定的值
[主观题]以下程序运行后的输出结果是()。 include using namespace std; int main() {int i=10,以下程序运行后的输出结果是[ ]。include<iostream>using namespace std;int main(){int i=10,i:0;do{j=j+i;i--;}while(i>2);cout<<j<<end1;return 0;}
[主观题]下面程序运行后输出的结果是()。 include using namespace std; class example{ const下面程序运行后输出的结果是[ ]。include <iostream>using namespace std;class example{const int m;public:example(int i):m(i){}void pr(){cout<<"m="<<m<<endl'}};int main(){example x(100);x.pr();retur
[单选题]下列程序运行后的输出结果是()。 include void fun(int,int,int*); void main() { i下列程序运行后的输出结果是( )。 #include<iostream.h> void fun(int,int,int*); void main() { int x,y,z; fun(5,6,&x); fun(7,x,&y); fun(x,y,&z); cout<<x<<","<<y<<","<<z<<end1; } void fun(i
[单选题]下面程序的输出结果是#include#includevoid main(){char p1[10],p2[10];strepy(p1,”abc”):strcpy(p2,”ABC”);char str[50]=”xyz”;strcpy(str+2,strcat(p1,p2));cout <}A.xyzabcABCB.zabcABCC.xyabcABCD.yzabcABC
[单选题]下面程序的输出结果是 ( ) include include { char * p1="abc" , *下面程序的输出结果是 ( ) # include<stdio.h> # include<string.h> { char * p1="abc" , * p2=" ABC ",str[50]="xyz"; strcpy(str+2.strcat (pi,p2)); printf("%s/n",str);}A.xyzabcABB.zabcABCC.yzabcABCD.xyc