Liste des Groupes | Revenir à cl c |
Thiago Adams <thiago.adams@gmail.com> wrote:Does anyone know of any platform where integer division by zero returns>
a number, or in other words, where it's not treated as an error? I'm
asking because division by zero is undefined behaviour, but I think
division by a constant zero should be a constraint instead.
Yeah, I cannot think of an architecture where dividing by zero doesn't
result in an exception or error of some sort. But there's ARM, where it
might return 0, the dividend, or just garbage.
Les messages affichés proviennent d'usenet.