dlarson@blake.acs.washington.edu (Dale Larson) (11/22/89)
Thank you for the responses. A continuation line must have a backslash as literally the last character with no whitespace following it. This is a pain to debug if you are misfortunate enough to get a space or tab after your backslash, but I see the reason for it. It has been beaten into my head that a+5 points to (5*sizeof(a)) higher than a, not (5*sizeof(type a is a pointer to)) higher than a. Have you ever just decided to think that 1+1=3, and not been able to be convinced otherwise (even through repeated demonstration) and then later just realized that 1+1 does equal 2? Oh well. BTW, I do know that struct test *a doesn't allocate storage for an array -- I was using dynamic allocation in the program I was working on when I was trying to figure out the shorter way of saying a+5*sizeof(struct test). -- A lack of prior planning on the part of any programmer always constitutes an emergency. Digital Teddy Bear dlarson@blake.acs.washington.edu