
206 Functions in C++
prototype declaration statement is always terminated with semicolon. The statements given below
are the examples of function prototypes.
(A) void show (void);
(B) float sum (float, int);
(C)
float sum (float x, int y);
In example (A) the return type is void, that is the function does not return any value. The void
functions are always without return statement. The void argument, that is the function, does not
require any argument. By default, every function returns an integer value. To return a non-integer
value, the data type should be mentioned in function prototype and definition. While writing
definition of function, the return ...