title: How to evaluate a mathematical expression using strings and arrays in C
body: <p>I want to evaluate a mathematical expression stored as a string, eg. <code>"1+3/4*3"</code>.</p>
  
  <p>My idea to accomplish this:</p>
  
  <ul>
  <li>Read in the string store it in an array, </li>
  <li>Extract operators to a temporary array and sort according to mathematical order of operations.</li>
  <li>Extract values to a temporary array, which in turn evaluates the expression using the correct operation.</li>
  </ul>
  
  <p>Does my logic sound about right? If so, can you please show me an example even of just a basic version of like <code>3+1-3</code>.</p>