[单选题]

下面程序运行后输出结果是()

A . CAB

B . BCA

C . BCB

D . CBC

参考答案与解析:

相关试题

下面程序运行后的输出结果是()。#includemain(){int a[5]=

[单选题]下面程序运行后的输出结果是()。includemain(){int a[5]={1,0,4,2,0},b[5]={1,2,3,4,5}下面程序运行后的输出结果是( )。 #include<stdio.h> main() {int a[5]={1,0,4,2,0},b[5]={1,2,3,4,5},i,s=0; for(i=0;i<5;i++)s=s+b[a[i]]; printf("%d/n”,s); }A.12B.15C.11D.8

  • 查看答案
  • 下面程序运行后,输出结果是()。Private Sub mysub(b()As

    [单选题]下面程序运行后,输出结果是( )。 Private Sub mysub(b()As Integer,OptionalByValnAsInteger=2) ForI=1 to 4 b(I)=n*I NextI End Sub Private Sub Commandl_Click() Dima(1 to 4)As Integer,I As Integer Callmysub(a(),5) Mysuba() ForI=1 to 4 PrinA.5101520B.2468C.出错D.0000

  • 查看答案
  • 下面程序运行后输出的结果是()。 include using namespac

    [主观题]下面程序运行后输出的结果是()。 include using namespace std; class example{ const下面程序运行后输出的结果是[ ]。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();retur

  • 查看答案
  • 运行下面程序后,正确的输出结果是 ______。Private Sub Comm

    [单选题]运行下面程序后,正确的输出结果是 ______。Private Sub Command1_ Click() x = 6 if x >6 then Print "x>6": Else if x <8 then Print "x<8"; Else if x = 6 then Print "x=6": End if End if End ifEnd SubA.x<8 x=6B.x<8C.x=6D.x<8或x=6

  • 查看答案
  • 下面程序运行后的输出结果是______。 struct abc{int a,b,

    [单选题]下面程序运行后的输出结果是______。 struct abc { int a,b,c; } main() { struct abc s [2]={{1,2,3},{4,5,6}}; int t=-s[0].a+s[1].b; printf("%d/n",t); }A.5B.6C.7D.8

  • 查看答案
  • 下面程序运行后的输出结果是_____。struct abc{int a,b,c;

    [单选题]下面程序运行后的输出结果是_____。 struct abc { int a,b,c; } main() { struct abc s[2]={{1,2,3},{4,5,6}}; int t=s[0].a+s[1].b; printf("%d/n",t); }A.5B.6C.7D.8

  • 查看答案
  • 下面程序运行后的输出结果是______。struct abc{int a,b,c

    [单选题]下面程序运行后的输出结果是______。 struct abc { int a,b,c; } main() { struct abc s[2]={{1,2,3},{4,5,6}}; int t=s[0].a+s[1].b; printf("%d/n",t); }A.5B.6C.7D.8

  • 查看答案
  • 下面程序运行后的输出结果是______。Private Sub Command1

    [单选题]下面程序运行后的输出结果是______。Private Sub Command1_ Click ( ) for j = 1 To 10 if j Mod 3 <> 0 then a =a+j/3 Next j Print aEnd SubA.20B.10C.3D.9

  • 查看答案
  • 运行下面程序后,正确的输出结果是()。 public class Sun { p

    [单选题]运行下面程序后,正确的输出结果是( )。public class Sun{public static void main(String args[ ]){int x=6;if(x>6)System.out.println("x>6");elseif(x<8)System.out.println("x<8");elseif(x==6)System.out.println("x=6");}}A.x<8x=6B.x<8C.x=6D.x<8或x=6

  • 查看答案
  • 下面程序运行后的输出结果是______。struct abc{int a,b,c

    [单选题]下面程序运行后的输出结果是______。 struct abc { int a,b,c; } main() { struct abc s[2]={{1,2,3},{4,5,6}}; int t=-s[0].a+s[1].b; printf("%d/n",t); }A.5B.6C.7D.8

  • 查看答案
  • 下面程序运行后输出结果是()