title: C String Comparison Failure?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3933614/c-string-using-equality-operator-for-comparing-two-strings-for-equality">C String &mdash; Using Equality Operator == for comparing two strings for equality</a>  </p>
  </blockquote>
  
  
  
  <p>I have the following code;</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #define MAXLINE 2600
  char words[4][MAXLINE];
  int i;
  
  int main(){
  
      printf("Enter menu option: ");
  
      scanf("%s", words[i]);
  
      printf ("\n %s was entered!", words[i]);
  
      if (words[i]=="help"){
          printf("\nHelp was requested");
      } 
      else 
      { 
          printf("\nCommand not recognized!"); 
      }
  
  }
  </code></pre>
  
  <p>The array evaluation in the if statement isn't working. I am obviously doing something wrong. Can someone explain to me what?</p>