以下程序的输出结果是String s1=admin
相似题目
-
以下程序的输出结果是( ) #include iostream.h #include string.h void main() { char *p[10]={abc,aabdfg,dcdbe,abbd,cd}; cout<
-
下面程序的运行结果是_________ String s1 = new String( “abc”); String s2 = new String( “abc”); System.out.println(s1==s2); String s3 = “ 你好吗 ”; String s4 = ” 你”; String s5 = ” 好吗 ”; System.out.println( “ 你好吗 ”==(”你”+”好吗 ”)) ;
-
以下是关于字符串运算的代码,执行该代码段的输出结果是( )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;}}下列选项中,程序的运行结果是()
-
有以下程序 include <string.h>main(){char p[20]={′a′, ′b′, ′c′, ′d′}, q[]="abc", r[]="abcde";strcat(p, r); strcpy(p+strlen(q), q);printf("%d\n",strlen(p));}程序运行后的输出结果是
-
下列程序段的输出结果是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<stdio.h> include<string.h> main() {char str[][20][{"One*World","One*Dream!"},*p=str[1]; prinft("%d,",strlen(p));printf("%s\n",p); } 程序运行后的输出结果是()。
-
以下程序:main(){chars1[40]="country",s2[20]="side";inti=0,j=0;while(s1[i]!='\0')i++;while(s2[j]!='\0')s1[i++]=s2[j++];s1[i]=0;printf("%s\n",s1);}的输出结果为()
-
有以下程序:# include <stdio.h># include <string.h>main(){char x[]="STRING";x[0]=0;x[1]="\0";x[2]="0";printf("%d%d\n", sizeof(x),strlen(x));}程序运行后的输出结果是______。
-
◑有以下程序◑include◑include◑main( )◑{char x[]=“STRING”;◑x[0]=0;x[1]=’\0’;x[2]=’0’;◑printf(”%d%d\n”,sizeof(x),strlen(x));◑}◑程序运行后的输出结果是( )。◑6 1◑7 0◑6 3◑7 1
-
设已执行预编译命令include<string.h>,以下程序段的输出结果是char s[]=" an apple" ;printf(" %d\n",strlen(s));
-
有以下程序(strcat函数用以连接两个字符串)include<stdio.h>include<string.h>main(){char a[20]=”ABCD\0EFG\0”,b[]=”IJK”;strcat(a,b);printf(”%s\n”,a);}程序运行后的输出结果是()。
-
下列语句输出结果为()。 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);
-
以下程序的输出结果是include<stdio.h>include<string.h>main{charb1[18]=abcdefg,b2[8],*pb=b1+3;while(--pb>=b1)strcpy(b2,pb);printf(%d\n,strlen(b2));}()
-
有以下程序:includ<stdio.h>include<string.h>main()chaa[10]="abcd";printf("%d,%",strlen(a),sizeof(a));}程序运行后的输出结果是()
-
以下程序段输出的结果是() public class Test{ public static void main(String[] args) { String str=”ABCDE”; str.substring(3); str.concat(“XYZ”); System.out.println(str); } }
-
以下程序段输出的结果是什么? String s1 = "Java"; String s2 = "Java"; if(); }
-
以下程序main(){chars1[20]=“abc”,s2[20]=“123”;if(strcmp(s1,s2)>0)printf(“%s\n”,s1);elseprintf(“%s\n”,s2);}的输出结果是()
-
下列程序的运行结果是 【15】 。 import java.io.*; public class test public static void main(String arg) String s1="Hello!”; System.out.pnntln(s1.toUpperCase()); HELLO!
推荐题目
- 塞钉式接续线的塞钉打入深度最少与轨腰平,露出不超过()mm,塞钉与塞钉孔要全面紧密接触,并涂漆封闭。
- 下列哪项禁止性规定属于第二部婚姻法新增加的内容?()
- 预付卡按是否记载持卡人身份信息分为记名预付卡、不记名预付卡。
- 国际贸易中的汇票,其行为主要有()。
- 关于新生儿胆红素代谢特点的知识,下列说法不正确的是()
- 《煤矿安全规程》规定:专为升降人员用的钢丝绳,安全系统不得小于()
- 社会主义改造的任务完成以后,我国社会的主要矛盾是()
- 依据《建设工程安全生产管理条例》,建设单位在编制工程概算时,应当确定建设工程安全作业环境及安全施工措施所需费用。作为()的组成部分,以确保工程安全的需要。
- 玻璃液体温度计按其用途可分为()。
- 本地DWDM网能力指标组中,反映了DWDM网上合波分波器的端口规模和能力情况的是()