Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site taurus.UUCP Path: utzoo!linus!philabs!cmcl2!floyd!vax135!ukc!hirst1!minotaur!taurus!dave From: dave@taurus.UUCP (Dave Lukes) Newsgroups: net.lang.c Subject: Re: & operator Message-ID: <122@taurus.UUCP> Date: Tue, 20-Dec-83 06:12:26 EST Article-I.D.: taurus.122 Posted: Tue Dec 20 06:12:26 1983 Date-Received: Sat, 24-Dec-83 10:59:37 EST References: <481@sdcsla.UUCP> <1064@mit-eddie.UUCP> Organization: Taurus Technology Ltd, London Lines: 14 Uh-uh: if(*in++ == *in++) is NOT a sensible way to see if the first two characters of a string are equal: ask lint, it will say something like: `in: evaluation order undefined'. Also, for those of little faith, there are actually C compilers that will take the non-obvious meaning of this (e.g. the PDP-11 cc), and do the tests then do both increments in one go after the statement, so BE WARNED, Yours in an arbitrary evaluation order Dave Lukes !ukc!hirst1!minotaur!dave