pgm 13.12: upper bounds check on words input; pointers instead of subscripts in read() for the joy of practicing pointer arithmetic