From: Vik Heyndrickx Newsgroups: comp.os.msdos.djgpp Subject: Re: complex numbers, correct ?? Date: Fri, 29 Aug 1997 13:24:37 +0200 Organization: University of Ghent, Belgium Lines: 20 Message-ID: <3406B175.35AB@rug.ac.be> References: <5tsl8i$ce$1 AT news DOT IAEhv DOT nl> NNTP-Posting-Host: eduserv1.rug.ac.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Peter Berdeklis wrote: > > On 25 Aug 1997, Jos Bergervoet wrote: > > > complex a, b, c; > > a = complex(23.4, 26.9); > > b = (a+2)/(a+3); > > printf( "Hello: result = (%10.4g,%10.4g)\n", b ); > > By the way, if the code fragment you give above works on other compilers > dump them! This would be a compiler bug. No, it wouldn't. With a little modification this also "works" on djgpp and the compiler won't complain unless you set a specific warning option (dump djgpp?). It yields undefined behaviour though. -- +----------------+ | Vik Heyndrickx | +----------------+