title: C++ arguments comparison
body: <p>Hello I am trying to read some arguments and process them but when i try to read arguments via if else ladder a problem occurs</p>
  <pre><code>int main (int argc, char *argv[])
  {
  cout &lt;&lt; argv[1] &lt;&lt; endl;
  if (argv[1] == &quot;process&quot;)
      cout &lt;&lt; &quot;yes&quot; &lt;&lt; endl;
  else
      cout &lt;&lt; &quot;no&quot; &lt;&lt; endl;
  }
  </code></pre>
  <p>This code outputs:</p>
  <blockquote>
  <p>process</p>
  <p>no</p>
  </blockquote>
  <p>Do you know why the output is <strong>no</strong> instead of <strong>yes</strong>?</p>
  <p><em>By the way I tried to convert either one of them to a string and compared it with another surprisingly it worked, even though I couldn't figure out why.</em></p>