公告

Gentoo交流群:87709706 欢迎您的加入

#1 2022-08-29 16:15:26

batsom
管理团队
注册时间: 2022-08-03
帖子: 594
个人网站

C 练习实例34

题目:练习函数调用。

程序分析:无。

程序源代码:

#include <stdio.h>
void hello_world(void)
{
    printf("Hello, world!\n");
}
void three_hellos(void)
{
    int counter;
    for (counter = 1; counter <= 3; counter++)
        hello_world();/*调用此函数*/
}
int main(void)
{
    three_hellos();/*调用此函数*/
}

离线

页脚

Powered by FluxBB

本站由XREA提供空间支持