I have a simple question that is motivated by safe coding.
I encountered a situation where I have to assign the negative value of the remainder of division or 0 to an int variable, so I used the following notation:
int a = -(b % c);
where both b and c are positive integers. The expression (b % c) will yield a positive number or 0 and a will be assigned the negative value of the result.
In the event that (b % c) yields 0, what does -0 evaluate to? 0 or negative 0? and what are the implications if the latter happened?
P.S I don't know what negative 0 is.