title: comparing int and char in c ,using if condition
body: <pre><code> char  c[50];
  scanf(&quot;%s&quot;,c);
  int counter;
  for(int i=0;i&lt;strlen(c);i++){
      for(int j=0;j&lt;=9;j++){
          if(j==c[i]) // this line not comparing 
          counter+=1;
      }
  </code></pre>
  <p>Comparing integer (j) to digit in array c, while debugging it is not comparing</p>