arrays and vectors in c horstmann chapter 6 part 2