title: Write an equivalent C expression for x % 8?
body: <p>I am just back from an interview and this question is bugging me. I was asked to write an equivalent expression for <code>x % 8</code> and I couldn't get it. I know it's something to do with 8 being in powers of 2 but I just can't figure it out. This seems like a great programmer community so I'm hoping anyone here can answer this?</p>