![589eef86b87e50174155f1d06d55532a.png](https://i-blog.csdnimg.cn/blog_migrate/95a16bff8ce0da6d4e4108b4b3210cf3.jpeg)
业务手上拿的运输业务增长图表
我们先看具体的例子:
#include void pound(int n); // ANSI function prototype declarationint main(void){ int times = 5; char ch = '!'; // ASCII code is 33 float f = 6.0f; pound(times); // int argument pound(ch); // same as pound((int)ch); pound(f); // same as pound((int)f); return 0;}void pound(int n) // ANSI-style function header{ // says takes one int argument while (n-- > 0) printf("#"); printf("");}//输出结果为:#+RESULTS:: #####: #################################: ######
程序的函数头部:
void pound(int n)
如果函数不接受任何参数,函数头