mirror of
https://github.com/wangdoc/clang-tutorial.git
synced 2026-02-03 10:53:37 +08:00
Update function.md
This commit is contained in:
@@ -83,7 +83,7 @@ unsigned long Fibonacci(unsigned n) {
|
||||
|
||||
C 语言规定,`main()`是程序的入口函数,即所有的程序一定要包含一个`main()`函数。程序总是从这个函数开始执行,如果没有该函数,程序就无法启动。其他函数都是通过它引入程序的。
|
||||
|
||||
`maind()`的写法与其他函数一样,要给出返回值的类型和参数的类型,就像下面这样。
|
||||
`main()`的写法与其他函数一样,要给出返回值的类型和参数的类型,就像下面这样。
|
||||
|
||||
```c
|
||||
int main(void) {
|
||||
|
||||
Reference in New Issue
Block a user