C 练习实例77

C语言教程评论

C 练习实例77

题目:填空练习(指向指针的指针)。

程序分析:无。文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili77.html

实例

#include<stdio.h>
#include<stdlib.h>
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;
}

以上实例运行输出结果为:文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili77.html

man
woman
girl
boy
sister
文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili77.html文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili77.html
运营不易,
感谢支持!
weinxin
我的微信
我的微信公众号
我的微信公众号扫一扫
weinxin
我的公众号
 最后更新:2021-12-7
公式库网
  • 本文由 公式库网 发表于 2021年12月6日21:08:21
  • 转载请务必保留本文链接:https://www.gongshiku.com/html/202112/c-lianxishili77.html

发表评论