Mail Archives: djgpp/1998/06/05/15:31:10
Message-ID: | <35784752.B7BF8C31@hamburg.netsurf.de>
|
Date: | Fri, 05 Jun 1998 21:30:26 +0200
|
From: | Dennis Voss <dennis DOT voss AT hamburg DOT netsurf DOT de>
|
MIME-Version: | 1.0
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | printf bug ???
|
NNTP-Posting-Host: | dip036-2.hamburg.netsurf.de
|
Organization: | iSC internet Service Center GmbH
|
Lines: | 15
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi there,
I just wrote this little program:
#include <stdio.h>
void main(void)
{
int i = 1;
printf("%d %d %d", i, i++, i++);
}
Using DJGPP I got the output "3 2 1" which is wrong.
I also compiled this with Visual C++ 5 and the output was "1 1 1".
Can anyone help me solve this?
Dennis Voss
- Raw text -