+ 1

Why there is no place for infinite in programming?

When we divide any number by 0 it shows error, then you have to give importance to exception handling in c++ shouldn't there be just a infinite symbol inbuilt so that such errors do not arise.

15th Apr 2017, 9:42 AM
Pratyaksha
Pratyaksha - avatar
2 Réponses
+ 10
You can install that feature when you make your own compiler for c++ 😉 Also, mathematically 1/0 is not infinity. It is undefined. So, technically, it is an error, which has been implemented rightly (imho) in c++
15th Apr 2017, 9:49 AM
Pixie
Pixie - avatar
+ 2
Thankyou☺
15th Apr 2017, 9:53 AM
Pratyaksha
Pratyaksha - avatar