20
30
50
160
第1题:
第2题:
运行下面程序段的输出结果是().
A.Set
B.Setup
C.Setup
D.&39;S&39;&39;e&39;&39;t&39;
第3题:
下面程序运行后输出的结果是【 】。
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();
return 0;
}
第4题:
下面程序的运行结果是______。
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);}
第5题:
下面程序的运行结果是【 】。
include<iostream.h>
void main()
{
char s[]="9876",*p;
for(p=s;p<s+2;p++)
cout<<p;
}
第6题:
第7题:
下面程序的运行结果是( )。 #include<stdio.h> main() { int y=10; do{y--;}while(--y); printf("%d\n",y--); }
A.-1
B.1
C.8
D.0
第8题:
下面程序段的运行结果是( )。 #include<stdio.h> void main() {char str[]="ABC",*p=str; pfintf("%d\n",*(p+3)); }
A.67
B.0
C.字符'C'的地址
D.字符'C'
第9题:
下面程序运行输出的结果是【 】。
include <iostream>
using namespace std;
int main(){
char a[]="Chinese";
a[3]='\0';
cout<<a<<endl;
return 0;
}
第10题: