Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!purdue!ames!lll-winken!uunet!mcvax!hp4nl!eutrc3!wzv!wietse From: wietse@wzv.UUCP (Wietse Z. Venema) Newsgroups: comp.lang.c Subject: Re: printf() problem Keywords: C printf Message-ID: <288@wzv.UUCP> Date: 27 Apr 89 09:11:29 GMT References: <11657@hodge.UUCP> Reply-To: wietse@wzv.UUCP (Wietse Z. Venema) Organization: Eindhoven University of Technology, The Netherlands Lines: 10 In article <11657@hodge.UUCP> jdm@hodge.UUCP (jdm) writes: > > printf("%x %x %x %x\n", getc(fp), getc(fp), getc(fp), getc(fp)); The order of evaluation of the printf argument is not defined. Some compilers evaluate right to left, as you seem to experience. -- work: wswietse@eutrc3.uucp | Eindhoven University of Technology work: wswietse@heitue5.bitnet | Mathematics and Computing Science home: wietse@wzv.uucp | Eindhoven, The Netherlands