#include <stdio.h>#include <string.h>void main(){ char s[]="Happy\0";s[0]='0';s[1]=0;s[2]='\0';printf("%d%d",sizeof(s),strlen (s));}
0代表空字符?输出的是1不是0