指针的问题

stu202060510 stu202060510 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
#include <stdio.h>

void prints(char **strings) {
while (*strings != NULL) {
printf("%s\n",strings);
strings++;
}
}

int main(int argc, char *argv[])
{
char array[2][20] = {
{"This is a test"},
{"Hello world"}
};
char (*p)[20]=array;
char **point = p;
prints(point);
return 0;
}


运行结果怎么是:
This is a test
is a test
a test
st

怎么不是:
This is a test
Hello world
...全文

相关推荐

评论 11
收藏 已收藏
分享
返回顶部
stu202060510
C语言 70,039 成员 243,237 内容