Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!math.fu-berlin.de!opal!unido!mpirbn!p554mve From: p554mve@mpirbn.mpifr-bonn.mpg.de (Michael van Elst) Newsgroups: comp.sys.amiga.programmer Subject: Re: ANOTHER SAS C BUG Message-ID: <1916@mpirbn.mpifr-bonn.mpg.de> Date: 2 Apr 91 15:13:10 GMT References: <1991Mar31.035009.13183@csis.dit.csiro.au> Reply-To: p554mve@mpirbn.UUCP (Michael van Elst) Organization: Max-Planck-Institut fuer Radioastronomie, Bonn Lines: 18 In article <1991Mar31.035009.13183@csis.dit.csiro.au> dave@csis.dit.csiro.au (David Campbell) writes: >/* Here is some source which demonstrates a bug in the SAS C > compiler */ > *ptr = '\001' + *ptr++; > >/* Should print "iello" through the incrementing of str[0] If you look at the K&R book you can find that this isn't a bug but that C doesn't define the evaluation sequence of a binary operator except for &&, ||, ?: and the comma operator. Regards, -- Michael van Elst UUCP: universe!local-cluster!milky-way!sol!earth!uunet!unido!mpirbn!p554mve Internet: p554mve@mpirbn.mpifr-bonn.mpg.de "A potential Snark may lurk in every tree."