/*
Name:
Copyright:
Author:
Date: 31/07/17 10:57
Description:
【程序34】题目:练习函数调用
*/
#include <stdio.h>
void hello_world(void)
{
printf("Hello,world!\n\n");
}
void three_hellos(void)
{
int counter;
for(counter = 1;counter <= 3;counter++)
{
hello_world();
}
}
int main()
{
three_hellos();
return 0;
}
C语言——实例034 函数调用
最新推荐文章于 2024-09-12 09:01:37 发布
本文通过一个简单的C语言程序介绍了如何定义和调用函数。该程序包含一个打印'Hello, world!'的函数和一个调用该函数三次的函数。此示例有助于初学者理解C语言中函数的基本使用。
7646

被折叠的 条评论
为什么被折叠?



