A function declaration, or prototype, gives a function’s name, the types of its parameters and the type of its result, followed by a semicolon: int digit_sum(unsigned n);. A function definition gives the same heading followed by the body between braces. A function has exactly one definition in a program, and may be declared many times; every call must come after a declaration or the definition.
书籍暂未推出简体中文版——当前显示英文版。
Computer Science · 术语表
什么是 Function declaration, function definition?
又称: function declaration · prototype · function definition