有以下程序: #include<string.h> main( ) { cha
题型:单项选择题
问题:
有以下程序: #include<string.h> main( ) { char *p="abcde\0ghjik\0"; printf("%d\n",strlen(p) ); } 程序运行后的输出结果是( )。
A.12
B.15
C.6
D.5
有以下程序: #include<string.h> main( ) { char *p="abcde\0ghjik\0"; printf("%d\n",strlen(p) ); } 程序运行后的输出结果是( )。
A.12
B.15
C.6
D.5