cvs.gedasymbols.org/archives/browse.cgi | search |
From: | Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be> |
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> <Pine DOT SGI DOT 3 DOT 91 DOT 970827160403 DOT 12574A-100000 AT atmosp DOT physics DOT utoronto DOT ca> |
NNTP-Posting-Host: | eduserv1.rug.ac.be |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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 | +----------------+
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |