title: STRCMP on numeric strings
body: <p>so I have 3 variables:</p>
  
  <pre><code>char fromAge[4];
  char toAge[4];
  char age[4];
  </code></pre>
  
  <p>They can all have a number between 18 and 100 (include 18 and 100).
  When I give them the follwing values, the following statement is wrong for some reason:</p>
  
  <pre><code>fromAge[4] = 18;
  toAge[4] = 100;
  age[4] = 25;
  if (strcmp(age, fromAge) &gt;= 0 &amp;&amp; strcmp(age, toAge) &lt;= 0)
  {
  //actions
  }
  </code></pre>
  
  <p>It thinks "age" isn't smaller or equals to "toAge".
  Any suggestions for why?</p>
  
  <p>edit:
  This is how I assign the variables, I leave 1 byte for '\0'</p>
  
  <pre><code>scanf("%s", fromAge);
  scanf("%s", toAge);
  </code></pre>
  
  <p>and age is 2,5,'\0'</p>