C++ error | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 20

C++ error

What kind of error is division by zero? (a question in quiezzes) - Compile Time Error, Runtime Error or Runtime Exception? I think it should be the latter (runtime exc). Is it right?

13th Feb 2018, 6:06 PM
Robert
Robert - avatar
6 Respuestas
+ 24
in the c++ challenge it is a runtime error, if i am right 👍😉
13th Feb 2018, 6:38 PM
tooselfish
tooselfish - avatar
+ 15
thx
13th Feb 2018, 7:01 PM
Robert
Robert - avatar
+ 14
@The Great Saga Their compiler just outputs "No output", as it doesn' handle exceptions. In distinct of it, the Visual Studio does it.
14th Feb 2018, 5:08 AM
Robert
Robert - avatar
+ 5
Yeah, it's a runtime error, in that the program crashes when it reaches that point. @Akib x/0 =/= infinity x/0 tends towards infinity.
13th Feb 2018, 6:32 PM
Vlad Serbu
Vlad Serbu - avatar
+ 2
It is run time exception. Run to program and verify the console output. Other thing is when you divide by 0 you will get floating point exception.
14th Feb 2018, 1:45 AM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
+ 1
thanks😁😁
13th Feb 2018, 6:33 PM
Akib
Akib - avatar