How do I check if an integer is even or odd?

Posted by chustar on Stack Overflow See other posts from Stack Overflow or by chustar
Published on 2008-10-02T05:00:08Z Indexed on 2010/05/02 19:57 UTC
Read the original article Hit count: 179

Filed under:
|
|
|

How best can I check if an integer is even or odd in C? I considered how I'd do this in Java, but I couldn't come up with an answer either. Thanks.

© Stack Overflow or respective owner

Related posts about c

    Related posts about homework