liveBook · Manning

Prototype

A function prototype is a declaration specifying a function’s name, return type, and parameter types without its implementation.

How 2 Manning books explain it

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.

Read how Modern C, Third Edition explains prototype →

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.

Read how Modern C explains prototype →

What to know first

Related concepts

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.