站点图标 起风网

C基础 -自定义函数

自定义函数

#include <stdio.h>

void seeHello();//自定义函数声明
int main()
{ 
	printf("How are you!\n");
	seeHello();//函数调用
	printf("me too,I'am fine!\n");
	return 0;
}

//函数定义
void seeHello(void)
{ 
	printf("I'am fine,and you!\n");
}

原文链接:https://blog.csdn.net/living_ren/article/details/115681605

本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。

退出移动版