以下连接字符串的代码正确的是( )。
A: $myVar3 = "aaaa" + "bbb";
B: $myVar3 = "aaaa" . "bbb";
C: $myVar3 = "aaaa" join "bbb";
D: $myVar3 = join("aaaa","bbb");
A: $myVar3 = "aaaa" + "bbb";
B: $myVar3 = "aaaa" . "bbb";
C: $myVar3 = "aaaa" join "bbb";
D: $myVar3 = join("aaaa","bbb");
举一反三
- 以下程序的输出结果是main(){char ch[3][5]={"AAAA","BBB","CC"};printf("\"%s"\n",ch[1]); A: "AAAA" B: "BBB" C: "BBBCC" D: "CC"
- 有以下定义:charch[3][5]={"AAAA","BBB","CC"};执行语句printf("%s",ch[1]);后的输出结果是______。 A: AAAA B: CC C: BBBCC D: BBB
- 有以下程序:#include int main(){char c[3][5]={AAAA,BBB,CCC};printf(%s.c[1]);return 0;}
- {以下程序的执行结果是:#include <stdio.h>void main(){ch[3][5]={“AAAA”,”BBB”,”CC”};printf(“\”%s\”\n”,ch[1]);}} A: ”AAAA” B: ”BBB” C: ”BBBCC” D: ”CC”
- 以下程序的输出结果是 #include int main(void) { char ch[3][5]={"AAAA","BBB","CC"}; printf("%s",ch[1]); return 0; } A: "AAAA" B: "BBB" C: "BBBCC" D: "CC"