打卡8.8
2018-08-08 本文已影响8人
今生何求惟你
题目:填空练习(指向指针的指针)
程序:
#include <stdio.h>
int main(void)
{
char *s[]={"man","woman","girl","boy","sister"};
char **q;
int k;
for(k = 0; k < 5; k++)
{
q=s+k;//q = &s[k];
printf("%s\n",*q);
}
return 0;
}
输出样例:
打卡8.8