Path: utzoo!mnetor!tmsoft!dptcdc!jarvis.csri.toronto.edu!me!zougas From: zougas@me.utoronto.ca ("Athanasios(Tom) Zougas") Newsgroups: comp.lang.c Subject: Re: printf() problem Keywords: C printf Message-ID: <89Apr27.174525edt.19087@me.utoronto.ca> Date: 27 Apr 89 21:45:22 GMT References: <11657@hodge.UUCP> <89Apr26.092233edt.18850@me.utoronto.ca> <703@uva.UUCP> Reply-To: zougas@hammer.me.UUCP (Athanasios(Tom) Zougas) Organization: University of Toronto Mechanical Engineering Lines: 26 In article <703@uva.UUCP> dondorp@uva.UUCP (Erwin Dondorp (I84)) writes: >In article <89Apr26.092233edt.18850@me.utoronto.ca> zougas@hammer.me.UUCP (Athanasios(Tom) Zougas) writes: >>[stuff deletd] >>[arguments of a function are evaluated in the reverse order] >>It would happen in any C. > >NO. > > >I have a compiler that really evaluates the arguments in the order that >you specified, That thus makes the statement 'any C' to become untrue. > I should have said: "It could/might/.. happen in any C. Therefore, don't rely on order of evaluation. As a matter of fact, Kernighan & Ritchie state in _The C Programming Language_ , page 212: 'order of evaluation of function arguments is not specified by the language'." I apologize for my imprecision. Why do I feel like a scolded child :-? Tom. -- This is my signature: tom zougas