2006/06/27
Odd and even numbers
I don't think you'll ever find a better way of detecting whether a number is odd or even. The binary AND operator is brilliant in this setting.
of course, I believe in C you'd be able to do something like
Link: http://www.rgagnon.com/javadetails/java-0488.html
|
of course, I believe in C you'd be able to do something like
|
Link: http://www.rgagnon.com/javadetails/java-0488.html
Copyright © 2006 Stein Gunnar Bakkeby