THE IDEA
Understand the concept
A C++ function declares the type it returns, a name, and any parameters. Its caller can pass values in, and a return statement sends the result back; void means no value is returned.
WORKED EXAMPLE

LESSON 05 ยท C++
Functions name reusable work and declare their return type and inputs.
THE IDEA
A C++ function declares the type it returns, a name, and any parameters. Its caller can pass values in, and a return statement sends the result back; void means no value is returned.
WORKED EXAMPLE