Skip to main content

Chapter 5 Functions and Testing

So far, we’ve written programs that have only used one function, named main. In this chapter, we will look at how to use multiple functions in a program to break up the code into smaller, more manageable pieces. We will also discuss strategies for incrementally developing and testing your code.