STRING DB‘ABCDEFGHIJ’ MOVAH,01从键盘输入字符1~9 INT21H ANDAL,0FH DECAL XORAH,AH MOVBX,OFFSETSTRING ADDBX,AX MOVBL,[BX] MOVAH,02H ;显示输出 INT21H : 试回答: 如从键盘输入字符‘4’,程序段有什么结果?
以下程序的输出结果是( ) #include iostream.h #include string.h void main() { char *p[10]={abc,aabdfg,dcdbe,abbd,cd}; cout<
以下程序的输出结果是String s1=admin
下面程序段输出的结果是什么class Sample{static void Swap(ref int x, ref int y){int tmp;tmp = x; x = y; y = tmp;}static void Main(string[] args){int a = 30, b = 40;Swap(ref a, ref b);Console.WriteLine(\{0},{1}\, a, b);Console.ReadKey();}}
下面程序的运行结果是_________ String s1 = new String( “abc”); String s2 = new String( “abc”); System.out.println(s1==s2); String s3 = “ 你好吗 ”; String s4 = ” 你”; String s5 = ” 好吗 ”; System.out.println( “ 你好吗 ”==(”你”+”好吗 ”)) ;
有如下程序段:public class ish{public static void main(String[] args) {String s='call me ishmae';System.out.println(s.charAt(s.length()-1));}}则输出结果为?
以下是关于字符串运算的代码,执行该代码段的输出结果是( )String s=″0123456789″,sl,s2;sl=s.substring(2);s2=s.substring(2,5);System.out.println(s1+s2);
阅读下面的程序class StringDemo{public static void main(String[] args){String s1 = “a”;String s2 = “b”;show(s1,s2);System.out.println(s1+s2);}public static void show(String s1,String s2){s1 = s1 +”q”;s2 = s2 + s1;}}下列选项中,程序的运行结果是()
下列程序段的输出结果是String MyStr = "Hello,";MyStr = MyStr + "World!";System.out.println(
下列程序段的输出结果是()。String MyStr="Hello,";MyStr=MyStr+"World!";Sysmm.out.println(MySt
有以下程序 include<string.h> main() { char *p=“abcde、Ofghjik\0”; printf(“%d\n”,strlen(p)); } 程序运行后的输出结果
下列程序段的输出结果是()。String MyStr="Hello,";Mystr=MyStr + "World!";System.out.println(M
设已执行预编译命令include<string.h>,以下程序段的输出结果是char s[]=" an apple" ;printf(" %d\n",strlen(s));
下列语句输出结果为()。 public class test{ public static void main(String args[]) String s1
有以下程序 include<stdio.h>include<string.h>void fun(); } 程序运行后的输出结果是
应用程序的 main 方法中有以下语句,则输出的结果是()。String s1="0.5", s2="12";double x=Double.parseDouble(s1);int =Integer.parseInt(s2);System.out.println(x+y);
3、执行下面程序段的输出结果为()。 public class Q{ public static void main(String args[]){ int anar[]=new int[5]; System.out .println(anar[0]);} }
有以下程序段:程序运行后的输出结果是()
以下程序段输出的结果是() public class Test{ public static void main(String[] args) { String str=”ABCDE”; str.substring(3); str.concat(“XYZ”); System.out.println(str); } }
以下程序main(){chars1[20]=“abc”,s2[20]=“123”;if(strcmp(s1,s2)>0)printf(“%s\n”,s1);elseprintf(“%s\n”,s2);}的输出结果是()
下列是一个类的定义,将程序段补充完整。class AString s; 【10】 int a=66;A (String s1) s=s1; static int geta () return a: )
下面程序段的输出结果是()。 include<string.h> void main() char str1[10]="s","t","u","d","e","n","t"; printf("%d",strlen (str1));
以下程序的输出结果是什么? public class Useli7 { public static void main(String args[ ]){ int i; for (i=1;i<=5;i++){ if(i%2==0) System.out.println("*"); else continue; System.out.println(""); } System.out.println("$n"); } }
下列程序的运行结果是 【15】 。 import java.io.*; public class test public static void main(String arg) String s1="Hello!”; System.out.pnntln(s1.toUpperCase()); HELLO!