char *test_str = "This is a test string";

// test_str是指针类型,sizeof(test_str) = 8

char test_str[] = "This is a test string";

// test_str是数组类型,sizeof(test_str) = 22

相关文章: