C++ Concept Map

Signatures

Function declarations (also called prototypes) consist of a name and a signature, the "type" of the function. The number and types of any parameters, together with the return type make up the signature. E.g. if we combine a name, Fred, with a signature, two integer parameters and a floating point return, we get the prototype float Fred(int, int).

A special type used in signatures is void, which signifies no parameters, as in float Fred(void), or no return value, as in void Fred(int). A void pointer is capable of accepting a pointer to any type as its argument.


Please mail any corrections and/or suggestions to Roger Hartley at
rth@cs.nmsu.edu

Copyright © 2003 Roger Hartley