Section 19.13 Summary
In this chapter we studied pointers (addresses of variables) and how they can help with writing better code. We covered:
- The address of a variable
- Dereferencing a pointer
- Arrays and pointers
- Passing arrays to functions
- Arrays don’t know their own sizes
- Using pointer arithmetic to access array elements
Pointers make it possible to break up a large problem into many small sub-problems. Summary of designing and testing methods discussed in this chapter:
- Top-Down Design is used to break down larger problems into manageable pieces.
- Bottom-Up Testing is used to test the individual pieces.
- Top-Down Testing is used to check the flow of your program.