printf() problem
Wietse Z. Venema
wietse at wzv.UUCP
Thu Apr 27 19:11:29 AEST 1989
In article <11657 at hodge.UUCP> jdm at 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 at eutrc3.uucp | Eindhoven University of Technology
work: wswietse at heitue5.bitnet | Mathematics and Computing Science
home: wietse at wzv.uucp | Eindhoven, The Netherlands
More information about the Comp.lang.c
mailing list