Prototype
A function prototype is a declaration specifying a function’s name, return type, and parameter types without its implementation.
Modern C, Third Edition
A function prototype is a declaration that specifies a function's name, return type, and parameter types without providing its body.
- How it is used
- Uses prototypes to establish function-call interfaces before discussing the special entry point main.
- How deep it goes
- Explains declarations, void conventions, and call-site conversions, while deferring further details of extern.
- Examples
- Illustrates prototypes with leapyear and fbar declarations, portable main forms, and the exit declaration.
- What you can do after
- Evaluate and understand how a prototype determines argument conversions and the type used for a call’s result.
Modern C
A function prototype is a declaration that specifies a function's parameter types and return type.
- How it is used
- Uses parameter and return types to govern function calls and guide compiler conversions.
- How deep it goes
- Explains declaration syntax, void conventions, conversions, and special main forms without descending into linkage details.
- Examples
- Uses leapyear declarations, fbar argument conversion, main prototypes, and the exit declaration.
- What you can do after
- Evaluate function interfaces and anticipate compiler checking and conversions at calls.
What to know first
- declarationA declaration is a language construct that introduces a program entity or name and specifies information about it, such as its type or properties.
- float64Float64 is a 64-bit floating-point numeric type, commonly represented by the IEEE 754 binary64 format.
- function declarationA function declaration is a source-language construct that introduces a function by specifying its name and parameter interface, and may also provide its implementation.
- stringA string is a programming-language value representing textual data as an ordered sequence of characters or encoded units.
Related concepts
- callconfigures · A call is an invocation that requests execution of a function, routine, command, or tool, optionally supplying arguments.
- header filepart of · A header file is a source file containing declarations, macros, or other shared interface information intended for inclusion in other source files during compilation.
- return typehas part · A return type is the type, or absence of a type, associated with the result a function or method supplies to its caller.
- void typeconfigured by · A void type or return designation represents the absence of a meaningful usable value, especially as the result of a function or procedure.
- declarationkind of · A declaration is a language construct that introduces a program entity or name and specifies information about it, such as its type or properties.
Questions about prototype
What is prototype?
A function prototype is a declaration specifying a function’s name, return type, and parameter types without its implementation.
Which Manning books explain prototype?
Modern C, Third Edition and Modern C.
What should I know before learning prototype?
Manning books that teach prototype usually introduce declaration, float64, function declaration and string first.
What is prototype a kind of?
Prototype is a kind of declaration. A declaration is a language construct that introduces a program entity or name and specifies information about it, such as its type or properties.
What is prototype part of?
Prototype is part of header file. A header file is a source file containing declarations, macros, or other shared interface information intended for inclusion in other source files during compilation.
What are the parts of prototype?
Prototype includes parameter type list and return type.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

