Xref: utzoo alt.folklore.urban:16798 comp.lang.c:40551 Path: utzoo!utgpu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!decwrl!amdcad!sun!exodus!crashnburn.Eng.Sun.COM!rmp From: rmp@crashnburn.Eng.Sun.COM (Richard Pottorff) Newsgroups: alt.folklore.urban,comp.lang.c Subject: Re: Heroic failures (q = q++) Message-ID: <15952@exodus.Eng.Sun.COM> Date: 27 Jun 91 22:52:39 GMT References: <7079@gara.une.oz.au> <15520@exodus.Eng.Sun.COM> <1991Jun25.151408.1024@ux1.cso.uiuc.edu> <29378@uflorida.cis.ufl.EDU> Sender: news@exodus.Eng.Sun.COM Followup-To: alt.folklore.urban Organization: Sun Microsystems, Mt. View, Ca. Lines: 33 In article <29378@uflorida.cis.ufl.EDU> jma@reef.cis.ufl.edu (John 'Vlad' Adams) writes: In article <1991Jun25.151408.1024@ux1.cso.uiuc.edu> vulcan@uiuc.edu (EvilTwin) writes: >A co-worker and I tried the above on our respective machines. He on an IBM >70/386 using Borland C++, I on a MicroVAX II using DEC's C version 3.1. He >received a result of 6, I one of 5. >ps - the initial value of q was 5. #My platform, an Amiga, with SAS C 5.10a, also generates a 5. #Long live DECs and Amigas. :) -- John M. Adams --*****-- Professional Student /// ^^^^^^^^^^^^^^^^^^^^ I would be too, but it doesn't pay enough :-) I tried this two ways on my Turbo Pascal Compiler at home. int q=0; printf("\nq=q++=%d", q=q++); q=q++=0; and: q=q++; printf("\nq=%d", q); q=1 I don't know what this proves. Ramblin Rick