下面程序的运行结果是()。 usingSystem; classProgram{ publicstaticvoidMain(string[]args) { constintSIZE=10; int[] y={1,2,3,4,5,6,7,8,9,10}; int[] z=newint[SIZE]; for(int i=0;i
第1题:
运行下面程序段的输出结果是().
A.Set
B.Setup
C.Setup
D.&39;S&39;&39;e&39;&39;t&39;
第2题:
下面程序的运行结果是【 】。
include<iostream.h>
void main()
{
char s[]="9876",*p;
for(p=s;p<s+2;p++)
cout<<p;
}
第3题:
有以下类定义 clas sMyClass { public: My Class() { cout<<1;} }; 则执行语句MyClassa,b[2],*p[2];后,程序的输出结果是
A.11
B.111
C.1111
D.11111
第4题:
下面程序段的运行结果是 #include<iostream.h> void main( ) { char*s="abcde"; S+=2; cout<<&s;}
A.cde
B.字符'c'
C.字符'c'的地址
D.无确定的输出结果
第5题:
下面程序的运行结果是______。
include<stdio.h>
main()
{ int y,a;
y=2,a=1;
while(y--!=-1)
{do{a*=y;a++;}while(y--);}
printf("%d,%d",a,y);}
第6题:
下面程序的运行结果是( )。 #include<stdio.h> main() { int y=10; do{y--;}while(--y); printf("%d\n",y--); }
A.-1
B.1
C.8
D.0
第7题:
下面程序运行输出的结果是【 】。
include <iostream>
using namespace std;
int main(){
char a[]="Chinese";
a[3]='\0';
cout<<a<<endl;
return 0;
}
第8题:
第9题:
第10题:
下面程序的运行结果是( )。 include<stdio.h> main() {char a[80],*p="AbabCDcd"; int i=0,j=0; while(*(p++)!='\0') {if(*p>='a'&&*p<='z'){a[i]=*p;i++;} } a[i]='\0'; puts(A); }