< Previous | Contents | Next >

Using Parameters and Return Values

As youve seen with standard library functions, you can provide a function value and get a value back. For example, with the toupper() function, you provide a character, and the function returns the uppercase version of it. Your own functions can also receive values and return a value. This allows your functions to communicate with the rest of your program.

 

Introducing the Yes or No ProgramReturning a ValueAccepting Values into ParametersUnderstanding Encapsulation