Chapter 9 Value Returning Functions
Chapter 9 Value Returning Functions
Eighth Edition
• Functions
– Allow programmers to avoid duplicating code
– Allow for large, complex programs to be broken into
small, manageable tasks
• Some functions are built into the language, and others
are program-defined
• All functions are either value-returning or void
• A value-returning function returns one value
– Value returned to statement that called the function
• A void function returns no value