#include<stdio.h>int main(){char ch[]="Hello!"; int num;num=sizeof(ch);printf("num=%d",num);
}
Hello! 有6个字符,加上后面的\0,7个字符