语句LIST MEMORY LIKE a*能够显示的变量不包括A.aB.alC.ab2D.ba3
语句LIST MEMORY LIKE a*能够显示的变量不包括
A.a
B.al
C.ab2
D.ba3
语句LIST MEMORY LIKE a*能够显示的变量不包括
A.a
B.al
C.ab2
D.ba3
第1题
下列程序的输出结果是()。 #include<iostream.h> #include"string.h" void main() {char a[]="Hello Test",b[]="Test"; strcpy(a,b); cout<<a<<end1; }
A.Hello
B.Test
C.Hello Test
D.Hello Test HelloTest
第2题
下列程序的输出结果是【 】。
include<iostream.h>
include<string.h>
void main(){
char b[30];
strcpy(&b[0],"XY");
strcpy(&b[1],"YZW");
strcpy(&b[2],"ZXY");
cout<<b<<end1;
}
第3题
下面程序的输出结果是()。 #include<iostream.h> #include"stdng.h" void main() { char a[]="welcome",b[]="well"; strcpy(a,b); cout<<a<<endl; }
A.wellome
B.wellcom
C.well
D.wellwe
第4题
以下程序的输出结果是【 】。
include<iostream.h>
void main()
}
int a=0;
a+=(a=8) ;
cout<<a;
}
第5题
下列程序的输出结果是______。
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<<ch;
return 0;
}
第6题
下列程序的输出结果是 #include<iostream.h> int min(int a,int b) { if(a<b) return a; else return b; return0; } void main() { cout<<min (1,min (2,3))<<end1; }
A.0
B.1
C.2
D.3
第7题
下列程序的输出结果是 ______。 #include <iostream.h> void main() { int a[]={1,2,3,4,5,6},*p,**q; p=a; q=&p; cout<<*(p++); cout<<**q<<end1; }
A.34
B.56
C.12
D.23
第8题
下面程序的输出结果是()。 #include<iostream.h> #include"string.h" void main() {char a[]="Hello Test",b[]="Test"; strcpy(a,b); cout<<a<<end1; } A) B)
C) D)
A.Hello
B.Test
C.Hello Test
D.Hello Test HelloTest
第9题
以下程序的输出结果是【 】。
include<iostream.h>
include <string.h>
void main 0 {
char s[50];
strcpy(&s[O], "No" );
strcpy(&s[1], "123" );
strcpy (&s[2], "23456" );
cout<<s;
}
第10题
下面程序的输出结果是()。#include<iostream.h>
#include<string.h>
voidmain()
{
charp1[10],p2[10];
strcpy(p1,"abc");
strcpy(p2,"ABC");
charstr[50]="xyz":
strcpy(str+2,strcat(p1,p2));
cout<<str;
}
A.xyzabcABC
B.zabcABC
C.xyabcABC
D.yzabcABC
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!