title: find a char array in another char array in c
body: <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main ()
  {
      char name[10];
      cin&gt;&gt;name;
      char str[] = "Thomas";
      char * pch;
      pch=strchr(name,str);
      if (pch!=NULL) {
          cout&lt;&lt;"Foud"&lt;&lt;endl;
      }
  
      return 0;
  }
  </code></pre>
  
  <p>Hello, why i can't use 2 variables in strchr function, if you know how to search words in string</p>