("%s"%"hello")的返回值是()
A: hello
B: %s
C: %s%
D: hello%
A: hello
B: %s
C: %s%
D: hello%
举一反三
- 下面程序段的输出结果是_______。for s in "Hello, World!": if s==",": break print(s,end="") A: Hello, B: Hello,World! C: , D: Hello
- 以下要输出“hello,world!”正确的是? A: String s=String.format("%1s%2s","hello","world");System.out.println(s); B: String s=String.format("%1$s,%2$s","hello","world");System.out.println(s); C: String s=String.format("%s,%s","hello","world");System.out.println(s); D: String s=String.format("%1s,%2s","hello","world");System.out.println(s);
- 以下程序段的输出结果是 。Char s[ ]=”Hello World!”;Strlwr(s);Printf(“%s”,s); A: hello world! B: HELLO world! C: hello WORLD! D: HELLO WORLD!
- 下列不能输出字符串"Hello"的程序段是______。 A: char *t; t="Hello";printf("%s\n",t); B: char *t, s[]="Hello"; t=s;printf("%s\n",t); C: char s[20],*t=s; t="Hello";printf("%s\n",s); D: char *t, s[]="Hello"; t=s;printf("%s\n",s);
- 下面代码的输出结果是()for s in “Hello World”:if s==”W”:contineprint(s,end=” “) A: Hello orld B: Hello C: World D: HelloWorld