网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
当输入10,11,12时,下面程序运行结果是【】。 includeusing namespace std; int main() {
当输入10,11,12时,下面程序运行结果是【 】。
include<iostream>
using namespace std;
int main()
{
int a,b,C,max;
cin>>a>>b>>C;
if(max<b)
max=b;
if(max<c)
max=c;
cout<<max<<endl;
return 0;
}
参考答案
更多 “ 当输入10,11,12时,下面程序运行结果是【】。 includeusing namespace std; int main() { 当输入10,11,12时,下面程序运行结果是【 】。include<iostream>using namespace std;int main(){int a,b,C,max;cin>>a>>b>>C;if(max<b)max=b;if(max<c)max=c;cout<<max<<endl;return 0;} ” 相关考题
考题
当输入为"FoolSwalow"时,下面程序的执行结果是()。includemain(){char c;while(c!
当输入为"FoolSwalow"时,下面程序的执行结果是( )。 #include<stdio.h> main() {char c; while(c!='?') { c=getchar(); putchar(C); } }A.SwalowB.FoolC.Fool?D.?Swalow
考题
下面程序的运行结果是includevoid fun(int * a,int * b){ int x= * a; * a = * b;*
下面程序的运行结果是 #include<iostream.h> void fun(int * a,int * b) { int x= * a; * a = * b; * b=x; cout <<*a<< *b<<""; } void main( 0 { int x =1,y =2; fun(x,y); cout<< x << y <<end1; }A.12 12B.12 21C.21 12D.21 21
考题
下面程序的运行结果是 include void fun(int * a,int * b) { int x= * a; * a= *
下面程序的运行结果是#include<iostream.h>void fun(int * a,int * b){int x= * a;* a= * b; * b=X;cout < < * a < < * b < <" ";}void main( ){int x=1,y=2;fun(x,y) ;cout < < X < < y < < endl;}A.12 12B.12 21C.21 12D.21 21
考题
当执行下面的程序时,如果输入ABC,输出结果是 ______。includeincludevoi
当执行下面的程序时,如果输入ABC,输出结果是 ______。 #include<iostream.h> #include<string.h> void main(){ char ss[10]=“XYZWV”; cin>>ss; strcat(ss,”DEFG”); cout<<ss; }A.ABCDEFGB.ABCEFC.XYZVO/ABCXD.ABCXYZWVD
考题
下面程序的运行结果是( )。include main(){int a=25; fun(A); }fun(int *x){ print
下面程序的运行结果是( )。include<stdio.h>main(){int a=25;fun(A);}fun(int *x){ printf("%d\n",++*x);}
考题
下面程序的运行结果是 ______。 include void main() { char str[]="SSSWLIA",c; int
下面程序的运行结果是 ______。include<iostream.h>void main(){char str[]="SSSWLIA",c;int k;for(k=2;(c=str[k]!='\0';k++){switch(c){case'I':++k;break;case'l';continue;default;c
考题
当输入为"quert?"时,下面程序的执行结果是includemain(){ char c;c=getchar();while(c
当输入为"quert?"时,下面程序的执行结果是 #include<stdio.h> main() { char c; c=getchar(); while(c!='?') { putchar(c); c=getchar(); } }A.quertB.RvfsuC.quert?D.rvfsu?
考题
下面程序的运行结果是includevoid fun(int*a,int*b){int X= *a;* a= *b;*b=X;cout
下面程序的运行结果是 #include<iostream,h> void fun(int*a,int*b) { int X= *a; * a= *b; *b=X; cout<< *a<< *b<<" "; void main() int x=1, y=2; fun(x,y); cout<<X<<y<<end1; }A.12 12B.12 21C.21 12D.21 11
考题
当执行下面程序且输入a boy时,输出的结果是______。includeincludemain(){c
当执行下面程序且输入a boy时,输出的结果是______。 #include<stdio.h> #include<string.h> main() { char ss[81]="A BOY",hh[81],*pt; scanf("%s",hh); pt=strcat(ss,hh); puts(pt); printf("%s\n",hh); }A.A BOY a aB.A BOY a boy a boyC.A BOY a boy aD.A BOY a boy a boy
热门标签
最新试卷