title: How to see if two char variables equal to each other
body: <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  </code></pre>
  
  <p>I want the user to input two char sequences (such as adc and abd) and the program will tell them that the characters are equal as a whole or not.(the output now would be FALSE )
  I am not sure what to do with declaring my char variables.</p>
  
  <pre><code>char x[100]{};
  char y[100]{};
  </code></pre>
  
  <p>This is my isEqual function to work out if the two char values are the same</p>
  
  <pre><code>void isEqual(char x , char y)
  {
      for ( int i = 0 ; x[i] != '\0';i++){
          for ( int j = 0 ; y[j] != '\0'; j++){
              if ( x[i]==y[j]){
                  cout&lt;&lt;"TRUE";
              }else{
                  cout&lt;&lt;"FALSE";
              }
          }
      }
  }
  </code></pre>
  
  <p>So the user inputs two char variables here and then I call the isEqual function to see if they are True or False. </p>
  
  <pre><code>int main()
  {
      cout&lt;&lt;"Enter first characters :";
      cin&gt;&gt;x;
      cout&lt;&lt;"Enter second characters :";
      cin&gt;&gt;y;
      isEqual(x,y);
  }
  </code></pre>