title: How to compare char variables (c-strings)?
body: <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main() {
      char word[10]="php";
      char word1[10]="php";
  
      if(word==word1){
          cout&lt;&lt;"word = word1"&lt;&lt;endl;
      }
  
  return 0;
  }
  </code></pre>
  
  <p>I don't know how to compare two char strings to check they are equal. My current code is not working.</p>