| www.delorie.com/archives/browse.cgi | search |
| From: | Erik Max Francis <max AT alcyone DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: printf bug ??? |
| Date: | Fri, 05 Jun 1998 18:45:33 -0700 |
| Organization: | Alcyone Systems |
| Lines: | 17 |
| Message-ID: | <35789F3D.2DFEFD31@alcyone.com> |
| References: | <35784752 DOT B7BF8C31 AT hamburg DOT netsurf DOT de> <35785655 DOT 74D7EAD3 AT lucent DOT com> |
| NNTP-Posting-Host: | charmaine.alcyone.com |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Bob Lied wrote:
> The solution is, "Don't do that." The order of parameter
> evaluation is compiler-dependent, and the order of applying
> multiple post-increments is compiler-dependent. Depending on
> the compiler, you could also get "1 1 2", "1 2 3", or "3 3 3".
Printing "0 0 0" or crashing would, perhaps surprisingly, be acceptable
from a perfectly ANSI compliant compiler.
--
Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
Alcyone Systems / http://www.alcyone.com/max/
San Jose, California, United States / icbm:+37.20.07/-121.53.38
\
She glanced at her watch / . . . It was 9:23.
/ James Clavell
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |