复习一下:
void test() {
char* p = "ABCDE";
printf("sizeof(p) = %lld\n", sizeof(p)); // 8, 指针大小
printf("sizeof(\"ABCDE\") = %lld\n", sizeof("ABCDE")); // 6, 包括'\0'
printf("strlen(p) = %d\n", strlen(p)); // 5
printf("strlen(\"ABCDE\") = %d\n", strlen("ABCDE")); // 5
/****************************************************************************/
char a[] = "ABCDE";
printf("sizeof(a) = %lld\n", sizeof(a)); // 6, 包括'\0'
printf("strlen(a) = %d\n", strlen(a)); // 5
return 0;
}