title: Warning : comparison between pointer and integer
body: <pre><code>struct smt{
  char *c;
  };
  
  
  
  int main(){
     char *w="astring";
     if(smt-&gt;c == w[0])
     ...do something
  }
  </code></pre>
  
  <p>How do I fix the warning that I get in the if and what exacly causes it?</p>