CPP Function Prototyping

What is Functions Prototyping.

The C++ compiler requires knowing the function before any call can be made.
As in the Example above the function
DemonstrationFunction() is known
by the compiler when the call to the function,
DemonstrationFunction(),
is made inside the main function.

Many programmers want to organize their functions into files so the
functions can be used by all other application files.

As the C++ compiler requires knowing the function, you must
prototype the function you want to use if it is not in the file where
the call to the function is done.

Function prototyping:

Function prototyping:

// Method Type of each// return type name parameterunsigned short int getArea ( int width, int height);
// Prototyped function always end with semicolon.// Prototyped function is also called function declaration.// Parameter names are not required in the prototyping.