Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!caesar.cs.montana.edu!blake!dlarson From: dlarson@blake.acs.washington.edu (Dale Larson) Newsgroups: comp.lang.c Subject: Re: dpANSI quick queries REVISED Message-ID: <4566@blake.acs.washington.edu> Date: 21 Nov 89 16:17:45 GMT Reply-To: dlarson@blake.acs.washington.edu (Dale Larson) Organization: The Evergreen State College, WA Lines: 18 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