title: How does strcmp work when comparing strings?
body: <p>I am implementing a lexicographic sort and my professor told us to use <code>strcmp</code> in our implementation. The problem is, <code>strcmp</code> is very confusing in respects to how it compares strings. </p>
  
  <p>For instance, this here yields false:</p>
  
  <pre><code>    if (strcmp("What", "am") &gt; 0) {
          printf("true\n");
      } else {
          printf("false\n");
      }
  </code></pre>
  
  <p>Isn't "What" suppose to be greater than "am" lexicographically? The man page is very spartan in terms of explaining how the function determines if one string is greater or less than the other. There are some questions here, but I still cannot determine this result based on those explanations.</p>