title: Will strlen be calculated multiple times if used in a loop condition?
body: <p>I'm not sure if the following code can cause redundant calculations, or is it compiler-specific?</p>
  
  <pre><code>for (int i = 0; i &lt; strlen(ss); ++i)
  {
      // blabla
  }
  </code></pre>
  
  <p>Will <code>strlen()</code> be calculated every time when <code>i</code> increases?</p>