Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cca!mirror!datacube!ftw From: ftw@datacube.UUCP Newsgroups: comp.lang.c Subject: Re: Possible C Anomaly Message-ID: <102600014@datacube> Date: Mon, 14-Sep-87 11:03:00 EDT Article-I.D.: datacube.102600014 Posted: Mon Sep 14 11:03:00 1987 Date-Received: Thu, 17-Sep-87 01:07:19 EDT References: <9236@brl-adm.ARPA> Lines: 16 Nf-ID: #R:brl-adm.ARPA:-923600:datacube:102600014:000:473 Nf-From: datacube.UUCP!ftw Sep 14 11:03:00 1987 You should look at dpANS, in particular the discussion of "sequence points". That is why your example does not work (it is incorrect code!). When you write: k = k--; the compiler is free to decrement k FIRST 8-o Farrell T. Woods Datacube Inc. Systems / Software Group 4 Dearborn Rd. Peabody, Ma 01960 VOICE: 617-535-6644; FAX: (617) 535-5643; TWX: (710) 347-0125 UUCP: ftw@datacube.COM, ihnp4!datacube!ftw {seismo,cbosgd,cuae2,mit-eddie}!mirror!datacube!ftw