Date: Tue, 25 Aug 1998 15:11:47 +0300 (IDT) From: Eli Zaretskii To: Morten Stenshorne cc: djgpp AT delorie DOT com Subject: Re: What the $##@$ is going on here!?!?!? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Mon, 24 Aug 1998, Morten Stenshorne wrote: > However, if you're use integers, you are right - you should get an > divide-by-zero exception. This exception should in general trigger a signal which should abort the program with a traceback. > Just try this: > ----------- > double a=5, b=0; > double c = a / b; > printf("%f\n", c); > ----------- > It doesn't cause an exception when I run it. It depends on the x87 setup. It might be that by default it doesn't produce an exception, but you can change this with the _control87 library function.