Anything related to C and C++ function prototypes. Function prototypes are a way to describe the interface of a function to the client code.
Anything related to C and C++ function prototypes. Function prototypes are a way to describe the interface of a function to the client code, in fact function prototypes convey the following information about a function:
- its name;
- its return type;
- the list of its parameters, each listed with its type and name (this latter is optional).
For example, in this function definition:
int DoSomething(double a, char b, int* c)
{
// function body
}
the prototype is:
int DoSomething(double a, char b, int* c);
or just only:
int DoSomething(double, char, int*);