Review
Recall that a void-function is a C++ function that does not return a value
Syntax: void fun_name(parameter_list);
Return statements are optional in void-functions, are called without any argument, and are an exit point
- they’re optional because there is an implicit return statement at the end of the function body just before the }
-
It is an error to assign a variable to the result of calling a void-function