Re: duplicated modulo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday, April 01, 2011 12:19:16 pm you wrote:
> Sure. But I fail to see where between
> 
> a %= b;
> a %= b;
> 
> and
> 
> a = (a % b) % b;
> 
> and
> 
> a %= b;
> 
> would be a difference?

That is basic math. Once you have obtained the remainder of the division by b, 
taking the second time the remainder makes no sense.

-- 
Bogdan Cristea
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux