练习函数调用。

2023-12-16 10:41:53


#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://blog.csdn.net/tesla_shy/article/details/135029269
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。