История изменений
Исправление hateyoufeel, (текущая версия) :
Нет, не может. Нет, не происходит. И нет, это не UB.
For IEEE floats, division of a finite nonzero float by 0 is well-defined and results in +infinity (if the value was >zero) or -infinity (if the value was less than zero). The result of 0/0 is NaN. If you use integers, the behaviour is undefined.
Исходная версия hateyoufeel, :
Нет, не может.
For IEEE floats, division of a finite nonzero float by 0 is well-defined and results in +infinity (if the value was >zero) or -infinity (if the value was less than zero). The result of 0/0 is NaN. If you use integers, the behaviour is undefined.