取余%运算符

结果符号和左边的数相同:

int a=7%3;		//1
int c=7%-3;		//1
int b=-7%3;		//-1
int d=-7%-3;	//-1
发布了16 篇原创文章 · 获赞 0 · 访问量 264

猜你喜欢

转载自blog.csdn.net/qq_35764106/article/details/104031548