title: strcmp doesn't work in my code
body: <p>I have a problem with <strong>strcmp</strong> in my program.<br>
  i'm trying to compare two strings by their length, so i'm using strcmp() for that but when i compare them in my if statement it doesn't work well.  </p>
  
  <p>Doesn't strcmp compare length of strings?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  
  int main(int argc, char *argv[]) {
      char a[30],b[30],c[30];
      strcpy(a,"computer");
      strcpy(c,"science");
      strcpy(b,a);
      puts(a);
      puts(c);
      puts(b);
  
      if(strcmp(a,b)==0)
          printf("a=b\n");
      if(strcmp(a,c)&lt;0)
          printf("a&lt;c\n");
      if(strcmp(a,c)&gt;0)
          printf("a&gt;c");
  
      strcat(a,c);
      puts(a);
  
      getch();
      return 0;
  }
  </code></pre>