You're replying to a comment by Prasanna S.

August 05, 2015, 09:13

Right, turning off the rightmost bit is this

x = n & (~1)

2 & ~1 = 2
3 & ~1 = 2

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "antispam_143": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.