title: strcmp in C returns 1 instead of 0
body: <p>I wrote the following code in C.    </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  int main(void) {
      char str1[4] = "abcd";
      char str2[4] = "abcd";
      printf("%d\n",strcmp(str1,str2));
  
      return 0;
  }
  </code></pre>
  
  <p>I expected the return value to be 0 (as I am taught that strcmp function returns 0 for equal strings). But it prints 1!</p>
  
  <pre><code>Success  time: 0 memory: 2248 signal:0
  1
  </code></pre>
  
  <p>Is it a bug? Or am I missing out on something?</p>