网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
下面程序的输出结果是( )。
A
Hello
B
Test
C
Hello Test
D
Hello Test HelloTest
参考答案
参考解析
解析:
程序定义了字符数组a和b,并赋予初值分别为“Hello Test”和“Test”;调用strcpy()函数,将数组b的值复制给数组a,故输出a的结果为Test。
程序定义了字符数组a和b,并赋予初值分别为“Hello Test”和“Test”;调用strcpy()函数,将数组b的值复制给数组a,故输出a的结果为Test。
更多 “单选题下面程序的输出结果是( )。A HelloB TestC Hello TestD Hello Test HelloTest” 相关考题
考题
下面程序的输出结果是【】。define MIN(a,b) (((a)void main(){int
下面程序的输出结果是【 】。define MIN(a,b) (((a)<(b))?a:b)include <iostream.h>void main(){int x= 3, y=5;cout<< MIN(x,y)<<end1;}
考题
下面程序段的输出结果是()。includemain(){float x=1.236547;printf("%f\n",(int)(x*10
下面程序段的输出结果是( )。 #include<stdio.h> main() {float x=1.236547; printf("%f\n",(int)(x*1000+0.5)/(float)1000); }A.1.237000B.输出格式说明与输出项不匹配,输出无定值C.1.236000D.1.24
考题
下面程序的输出结果是______。 include main() {char *p[]="BOOL","OPK","H","SP"};int
下面程序的输出结果是______。 #include<stdio.h> main() { char *p[]="BOOL","OPK","H","SP"}; int i; for(i=3;i>=0;i-,i-) printf("%c",*p[i]); printf("\n"); }A.SOB.SPC.SPOPKD.SHOB
考题
下面程序的输出结果是( )。 include main() {static char a[]="china"; char*ptr=a; whi
下面程序的输出结果是( )。 include<stdio.h> main() {static char a[]="china"; char*ptr=a; while(*ptr) {printf("%c",*ptr-32); ptr++; } }
考题
下面程序运行输出的结果是【】。 include using namespace std; int main(){char a[]="C
下面程序运行输出的结果是【 】。include <iostream>using namespace std;int main(){char a[]="Chinese";a[3]='\0';cout<<a<<endl;return 0;}
考题
运行下面程序时,从键盘输入字母H,则输出结果是( )。A.B.C.D.A.AB.BC.CSXB
运行下面程序时,从键盘输入字母H,则输出结果是( )。A.B.C.D.A.AB.BC.CD.D
考题
下面程序的输出结果是【】。 include using namespace std; class A {int a,b; public:A
下面程序的输出结果是【 】。include <iostream>using namespace std;class A{int a, b;public:A(){a = b = 0;}A(int aa, int bb ) : a(aA) , b(bB){cout <<"a="<<a<<","<<"b="<<b<<",";}~A(){cout<<"D";};int main ( ){A x, y(2, 3);return 0;}
考题
下面程序的输出结果是()。includeinclude"stdng.h"void main(){ char a[]="welcome
下面程序的输出结果是( )。 #include<iostream.h> #include"stdng.h" void main() { char a[]="welcome",b[]="well"; strcpy(a,b); cout<<a<<endl; }A.wellomeB.wellcomC.wellD.wellwe
考题
下面程序的输出结果是()。includemain(){char a[]={'a','b','c','d','f','g'},*p;p=a;p
下面程序的输出结果是( )。 #include<stdio.h> main() {char a[]={'a','b','c','d','f','g'},*p; p=a; printf("%c\n",*p+4); }A.aB.bC.eD.f
考题
问答题下面程序输出的结果是什么?
热门标签
最新试卷