title: Comparing command parameter with argv[] is not working
body: <p>I am trying to compare the parameter of command with argv[] but it's not working. Here is my code.</p>
  
  <pre><code>./a.out -d 1
  </code></pre>
  
  <p>In main function</p>
  
  <pre><code>int main (int argc, char * const argv[]) {
  
  if (argv[1] == "-d")
  
      // call some function here
  
  }
  </code></pre>
  
  <p>But this is not working... I don't know why this comparison is not working.</p>