Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!uwm.edu!news.nap.net!www.nntp.primenet.com!nntp.primenet.com!feed1.news.erols.com!howland.erols.net!torn!hone!informer1.cis.McMaster.CA!hwfn!not-for-mail From: ac199@james.freenet.hamilton.on.ca (Tim Vanderhoek) Newsgroups: comp.unix.bsd.freebsd.misc Subject: gcc standards question (was blank) Date: 7 Nov 1996 17:04:56 -0500 Organization: Hamilton-Wentworth FreeNet, Ontario, Canada. Lines: 26 Message-ID: <55tme9$n27@james.freenet.hamilton.on.ca> NNTP-Posting-Host: james.freenet.hamilton.on.ca wrote: > > This program doesn't work as I think it should. On line 10, b is not > incremented between the first and second b++'s, though it is correct > after the entire expression. I won't swear to it, but I believe the results to that particular line are "undefined" in most standards (and with good reason -- ie. what should a line like a=b++*2||a[b]; produce? It could conceviably be optimized either waw). > a=c[b++]|((c[b++])<<8); -- tIM...HOEk "Perception is often reality - or at least it is perceived as to be so" - Scott Nudds [in usenet or email] -- tIM...HOEk "Perception is often reality - or at least it is perceived as to be so" - Scott Nudds [in usenet or email] --