Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!mcsun!cernvax!chx400!chx400!bernina!neptune!inf.ethz.ch!brandis From: brandis@inf.ethz.ch (Marc Brandis) Newsgroups: comp.lang.c Subject: Re: 10[25]==35? Really? Message-ID: <26272@neptune.inf.ethz.ch> Date: 25 Feb 91 14:53:02 GMT References: <25694@netcom.COM> Sender: news@neptune.inf.ethz.ch Reply-To: brandis@inf.ethz.ch (Marc Brandis) Organization: Departement Informatik, ETH, Zurich Lines: 14 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 not find a compiler that did it like that. All of them complained that they expected a variable to be indexed. Some of the compilers were ANSI (IBM S/6000), some were K&R (Sun 3, Sequent Symetry). Marc-Michael Brandis Computer Systems Laboratory, ETH-Zentrum (Swiss Federal Institute of Technology) CH-8092 Zurich, Switzerland email: brandis@inf.ethz.ch