求解。。C小问题,
#include<stdio.h>#include<string.h>
int main()
{
char *s="abcd\0efg\0hij";
int len1,len2,len3,len4;
len1=strlen("abcd\0efg\0hij");
len2=strlen(s);
len3=sizeof("abcd\0efg\0hij");
len4=sizeof(s);
printf("abcd\0efg\0hij\n");
printf("%d %d %d %d \n",len1,len2,len3,len4);
return 0;
}
讲解下一那些输出的结果