Mail Archives: djgpp/1997/08/29/14:17:49
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 |
+----------------+
- Raw text -