bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I am confused about a g++ architectual decision....


From: Vasya
Subject: I am confused about a g++ architectual decision....
Date: Mon, 7 Jan 2008 16:35:39 -0800 (PST)
User-agent: G2/1.0

Hello,

       I just discovered that g++ maps an integer division by zero,
e.g.

int num= 1;
int denum=0;
int result = num/denum;

to a signal 8 and in turn to a "Floating point exception".Why??

Regards. Vasili


reply via email to

[Prev in Thread] Current Thread [Next in Thread]