title: compare two equal array in c but output shows unequal
body: <p>After a long break,I am back to C but getting confused even on some simple issues.
  So one is here.</p>
  
  <p>Here is the simple code :</p>
  
  <pre><code> #include&lt;stdio.h&gt;
  
   int main() {
  
      char str1[]="hello";
      char str2[]="hello";
  
      if(str1==str2)
              printf("equal");  
      else
              printf("unequal");
  } 
  </code></pre>
  
  <p><strong>Output:</strong>
  unequal</p>
  
  <p>but when I tried this one ,it worked</p>
  
  <pre><code>  char *str1="hello";
    char *str2="hello";
  </code></pre>
  
  <p><strong>Output</strong>
  equal</p>
  
  <p>Please if anyone can provide a detailed explanation for it.
  Can someone tell me what exactly does C99 standard say about the situation ???</p>