title: How to compare integer arrays?
body: <p>I have four sensors (sen0-sen3) which return either <code>1</code> or <code>0</code> and I am making an array of values using <code>sprintf</code>. Then I am trying to compare them with <code>0000</code> or <code>1000</code> and so on.</p>
  
  <p>My Problem is even if the value of <code>sen_array</code> is <code>1000</code>, it never goes into the <code>else if</code> condition (straight to <code>else</code> condition).</p>
  
  <pre><code>char sen_array[4];
  
  sprintf(sen_array,"%d%d%d%d",sen0,sen1,sen2,sen3);
  if(strcmp("0000",sen_array)==0)
  {
      motor_pwm((156*(0.20).),(156*(0.20)));
  }
  else if(strcmp("1000",sen_array)==0)
  {
      motor_pwm((156*(0.40)),(156*(0.40)));
  }
  else
  {
      motor_pwm((156*(0.80)),(156*(0.80)));
  }
  </code></pre>