[单选题]

执行下面语句后,输出结果为()。

A . 10

B . 30

C . 10和30

D . 30和10

参考答案与解析:

相关试题

执行下面语句后,输出结果为()。A=10:B=30:C=20WriteLine(

[单选题]执行下面语句后,输出结果为()。A=10:B=30:C=20WriteLine("{0}{1}{2}",A,B,C)A . 0、1和2B . 10、20和30C . 20、10和30D . 10、30和20

  • 查看答案
  • 执行下列程序语句后,输出结果为()。#ineludeusing namespac

    [单选题]执行下列程序语句后,输出结果为()。ineludeusing namespace std;int m=5;int main(){i执行下列程序语句后,输出结果为( )。 #inelude<iostream> using namespace std; int m=5; int main() { int m=3; m++; ::m++; cout<<m<<end1; return 0; }A.3B.4C.5D.6

  • 查看答案
  • 执行下面语句后的输出结果为 ( ) int i=£­1; if(i<=0)pri

    [单选题]执行下面语句后的输出结果为 ( ) int i=-1; if(i<=0)print{("* * * */n"); else printf("% % % %/n");A.* * * *B.% % % % %C.% % % %cD.有语法错误,不能正确执行

  • 查看答案
  • 已知a的ASCⅡ码为97,执行下面两个语句后,输出的结果为______。char

    [单选题]已知a的ASCⅡ码为97,执行下面两个语句后,输出的结果为______。 char c1=97;c2=98; printf("%d%c",c1,c2);A.97 98B.97 bC.a 98D.a b

  • 查看答案
  • 执行下列语句后,输出的结果为______。 void run() { stati

    [主观题]执行下列语句后,输出的结果为______。void run(){static int x=3;x++;cout<<x<<" ";}int main(){for(int i=0;i<2;i++)fun();return D;}

  • 查看答案
  • 顺序执行下面的语句后,输出的结果是______。public class exl

    [主观题]顺序执行下面的语句后,输出的结果是______。public class exl6{public static void main(String[] args){int i;int a[] = new int[10];for(i = O; i < a.length; i++)a[i] = i * 10 + j;for(i = 1; i < a.length; i++)if(a[i]%5 == O)System,out.println(a[i]);}}

  • 查看答案
  • 阅读下面语句,则执行后的输出结果为()。include"stdio.h" mai

    [试题]阅读下面语句,则执行后的输出结果为()。include"stdio.h" main() { char a,b; for(a=&q阅读下面语句,则执行后的输出结果为()。include"stdio.h"main(){ char a,b;for(a="0",b="9";a<b;a++,b--)printf("%c%c",a,b);printf("/n");}

  • 查看答案
  • 阅读下面语句,则执行后的输出结果为(8) #include"stdio.h" m

    [主观题]阅读下面语句,则执行后的输出结果为 (8)#include "stdio.h"main(){char a,b;for(a=′0′,b=′9′;a <b;a++,b--)printf( "%c%c",a,b);printf("\n");}

  • 查看答案
  • 阅读下面程序,则执行后的输出结果为( )

    [单选题]阅读下面程序,则执行后的输出结果为( )

  • 查看答案
  • 下面程序执行后的输出结果为()。publicclassfun{publicsta

    [单选题]下面程序执行后的输出结果为( )。 public class fun { public static void main(String args[]) { String greets="How are you!"; String s=greets.substring(0,3); System.out.println(S); } }A.HowB.are.C.youD.how ate you!

  • 查看答案
  • 执行下面语句后,输出结果为()。