In short, functions are named reusable pieces of code. A function is made up of a function body associated with a function name. A function can accept zero or more parameters and optionally return a result.
13.1 Introduction
A function has a type, a name, a list of optional parameters, and a function body. The function blueprint is of the following
syntax:
some_type function_name(optional_parameters_declarations)
{
// function body with declarations and statements
return some_value; // optional return statement
}
So far, we have used only a main() function
, which is the main ...