title: Writing a C Macro
body: <p>I have to write a macro that get as parameter some variable, and for each two sequential bits with "1" value replace it with 0 bit.</p>
  
  <p>For example: 10110100 will become 10000100.<br>
  And, 11110000->00000000<br>
  11100000->100000000</p>
  
  <p>I'm having a troubles writing that macro. I've tried to write a macro that get wach bit and replace it if the next bit is the same (and they both 1), but it works only for 8 bits and it's very not friendly...</p>
  
  <p>P.S. I need a macro because I'm learning C and this is an exercise i found and i couldn't solve it myself. i know i can use function to make it easily... but i want to know how to do it with macros.</p>
  
  <p>Thanks!</p>