In C, when you multiply two integers and the result exceeds the maximum value the integer type can hold, you don't get an error. You get wraparound.
In fairness, most programming languages do the same thing unless you use special arithmetic methods (if available).
Hi! Thanks for your comment. It's true. I was just pointing out that C was so heavily used in industries dealing with life-or-death situations that it's a problem when using the language.
Yes, but your statement makes it sound like it's C's fault in particular.
Hm. Okay. How would you like me to change it?
There are many ways to rewrite it, such as:
In virtually all programming languages, C included, when you multiply two integers ...
Great. Done.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
In fairness, most programming languages do the same thing unless you use special arithmetic methods (if available).
Hi! Thanks for your comment. It's true. I was just pointing out that C was so heavily used in industries dealing with life-or-death situations that it's a problem when using the language.
Yes, but your statement makes it sound like it's C's fault in particular.
Hm. Okay. How would you like me to change it?
There are many ways to rewrite it, such as:
Great. Done.