设char
c[]=“china\0\t\’\\”;则printf(“%d\n”,strlen());的输出是( )。
A: 5
B: 9
C: 10
D: 13
c[]=“china\0\t\’\\”;则printf(“%d\n”,strlen());的输出是( )。
A: 5
B: 9
C: 10
D: 13
举一反三
- char c[ ]="\t\v\\0will\n"; printf("%d",strlen(c)); 程序段的输出结果是_____。 A: 14 B: 3 C: 9 D: 6
- 程序段 char s[ ]="\\\102abc";printf("%d\n", strlen(s)); 的输出结果是: A: 5 B: 8 C: 9 D: 10
- 以下程序段的输出结果是char s[]="\\141\141abc\t";printf ("%d\n",strlen(s)); A: 9 B: 12 C: 13 D: 14
- 下列程序段的输出结果是______。 char s[ ]=”\\\102abc”; printf(“%d\n”,strlen(s)); A: 5 B: 8 C: 9 D: 10
- 以下程序段的输出结果是?char s[]="hello\t中国";printf(“%d\n”,strlen(s)); A: 8 B: 9 C: 10 D: 11