[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] Re: [Linux India Digest V1 #300]



On 3 Nov 1999, Debansu Saha wrote:

> Date: Wed, 3 Nov 1999 23:12:02 +0530
> From: Mrinal Kalakrishnan <mrinal@xxxxxxxxx>
> Subject: [LI] C Programming problem
> 
> Hi,
> 
> This particular piece of code behaves differently when compiled with gcc
> (Linux), when compared to Turbo C or DJGPP (in DOS).


Solution is add fflush(stdout); after your first printf statement, for
detailed reasoning, look at R Stevans Unix Programming 2 Chap (I think)

-Chetan S


--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.