+ 3
Any idea why this is happens? Insted showing result in 0 or none ?
Division by 0 can crash your program
10 ответов
+ 9
https://code.sololearn.com/c7yiWUwmDY67/?ref=app
it's not crashing try above code
+ 10
https://stackoverflow.com/questions/9351814/division-by-zero-program-crash-in-c
look on this links it will clear your doubts Aman
https://www.viva64.com/en/t/0085/
+ 3
But trying to divide something by 0 is wrong. It's undefined/infinite/whatever. It can't just replace an invalid result with something like 0, none or a blank output. If it shows 0 and you use this result for further calculations, the whole result will be massively wrong.
+ 3
"In computing, a program error may result from an attempt to divide by zero. Depending on the programming environment and the type of number (e.g. floating point, integer) being divided by zero, it may generate positive or negative infinity by the IEEE 754 floating point standard, generate an exception, generate an error message, cause the program to terminate, result in a special not-a-number value, a freeze via infinite loop, or a crash."
https://en.m.wikipedia.org/wiki/Division_by_zero
+ 2
It can't show 0 as a result because x/0 is not 0.
+ 2
GAWEN STEASY Thankyou :)
+ 2
Anna u r right but. I want a specific reason behind crash.
+ 1
😁😁😁😁😁
+ 1
Anna i just want right reason why this code crash program ,
😂 is computer cannot understand it.? Ufff
0
Anna hmm But Should Show blank output. Insted crash