title: Determining if a word sequence is a palindrome?
body: <p>The error usually occurs when I run the code. I'm a beginner to C programmer. I personally think that I made the mistake at the if statement after I printed and copied &quot;word&quot;.</p>
  <pre><code>    char word[10]=&quot;hih&quot;,word1[10],i,j;
      
      for(i=0;i&lt;10;i++)
      {
          printf(&quot;%c&quot;, word[i]);
      }
      printf(&quot;\n&quot;);
      for(j=10;j&gt;=0;j--)
      {
          printf(&quot;%c&quot;, word1[j]);
      }
      printf(&quot;\n&quot;);
      if(word==word1)
      {
          printf(&quot;The word entered is a Palindrome word.&quot;);
      }
      else
      {
          printf(&quot;The word entered is not a Palindrome word.&quot;);
      }
  
      return 0;
  }
  </code></pre>
  <p>This is the error that I get:</p>
  <p><a href="https://i.stack.imgur.com/PiwAf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PiwAf.png" alt="enter image description here" /></a></p>