Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wuarchive!emory!att!news.cs.indiana.edu!arizona.edu!arizona!dave From: dave@cs.arizona.edu (Dave P. Schaumann) Newsgroups: comp.lang.c Subject: Re: 10[25]==35? Really? Summary: Only if you make it that way! Message-ID: <950@caslon.cs.arizona.edu> Date: 25 Feb 91 13:56:50 GMT References: <25694@netcom.COM> Organization: U of Arizona CS Dept, Tucson Lines: 19 In article <25694@netcom.COM> avery@netcom.COM (Avery Colter) writes: >With all this about the #define X1 -10, I find it interesting that >indexing a constant yields the sum of the constant and the number inside >the brackets. > >I could RTFM till the cows come home and never would have gleaned this. Well, if you would RTF code, you would've seen an initialization loop that looked something like this: for( i = 0 ; i < N ; i++ ) p[i] = i ; (That's probably not exactly what was in the code, but you get the idea.) Just another tricky day for you... -- Dave Schaumann | Is this question undecidable? dave@cs.arizona.edu |