填空练习(指向指针的指针)。
include
include
int main()
{
const char s[]={"man","woman","girl","boy","sister"};
const char **q;
int k;
for(k=0;k<5;k++)
{
q=&s[k]; /在这里填入内容/
printf("%s\n",q);
}
return 0;
}
以上实例运行输出结果为:
man
woman
girl
boy
sister
填空练习(指向指针的指针)。
int main()
{
const char s[]={"man","woman","girl","boy","sister"};
const char **q;
int k;
for(k=0;k<5;k++)
{
q=&s[k]; /在这里填入内容/
printf("%s\n",q);
}
return 0;
}
以上实例运行输出结果为:
man
woman
girl
boy
sister