Outline
Call-by-reference
- Review
- Syntax
- Examples
- Hidden details
- Mixing call-by-reference and call-by-value parameters
Using procedural abstraction
- Functions calling functions
- Preconditions and postconditions
- Supermarket pricing example
Testing and debugging functions
- Stubs and drivers
- Rule for testing functions
- Example