If you / or % by 0, the result is undefined (anything can happen).
Yes, I stand corrected =)
sorry, I was thinking in java.