We began this chapter by discussing C's various types beyond arithmetic types and custom types. It should come as no surprise, then, that typedef can apply to more than just the types we have explored in this chapter. typedef can be applied to the following types:
- Arrays (explored in the next chapter, Chapter 11, Working with Arrays)
- Pointer types (explored in Chapter 13, Using Pointers)
- Functions
- Pointers to functions
We mention these here as a matter of completeness only. When we explore pointers, we will touch on using typedef on variables of pointer types. However, the use of typedef for the other types is somewhat advanced conceptually and beyond the scope of this book.