C 练习实例34
题目:练习函数调用。
程序分析:无。文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili34.html
实例
#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();/*调用此函数*/
}
以上实例输出结果为:文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili34.html
运营不易,
感谢支持!
我的微信
微信号已复制
我的微信公众号
我的微信公众号扫一扫
我的公众号
公众号已复制