请解释以下原因,数学上正确的答案是-2两种情况:
-2
int a=7%-5; //Assigns 2 to a int a=-7%5; //Assigns -2 to a
代码在C中.
c modulo
c ×1
modulo ×1