[C++][NOTE][BEGINNER] devided by 0 is undefined behaviour
Integer division by zero is undefined behaviour.
According to §5.6.4 in the standard:
"If the second operand of / or % is zero the behavior is undefined."
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.