这是 C 代码片段:
int main()
{
char *names=[ "tom", "jerry", "scooby" ];
printf("%s", *names[0]);// prints t
printf("%s", *names[1]);// prints j
// how to print full word "tom", or full word "jerry"
}
如前所述,我希望我的输出是: tom jerry scooby 那么使用指针如何打印整个内容?