August 2012
Intermediate to advanced
976 pages
30h 17m
English
Like any other name, the name of a function must be declared before we can use it. As with variables (§ 2.2.2, p. 45), a function may be defined only once but may be declared multiple times. With one exception that we’ll cover in § 15.3 (p. 603), we can declare a function that is not defined so long as we never use that function.
A function declaration is just like a function definition except that a declaration has no function body. In a declaration, a semicolon replaces the function body.
Because a function declaration has no body, there is no need for parameter names. Hence, parameter names are often omitted in ...
Read now
Unlock full access