以下连接字符串的代码正确的是( )。
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 void main(){ char ch[3][5]={"AAAA","BBB","CC"}; printf("\"%s\"", ch[1]);} A: "AAAA" B: "BBB" C: "BBBCC" D: "CC"
- 以下程序段的输出结果是________。charch[3][5]={“AAAA”,“BBB”,“CC”};printf(“%s\n”,ch[1]); A: A)BBB B: B)AAAA C: C)BBBCC D: D)CC
- 有以下程序:#include int main(){char c[3][5]={AAAA,BBB,CCC};printf(%s.c[1]);return 0;}