Yes, and the compiler knows that as well. GCC even merges the two versions because they&#x27;re equivalent[0]<p>My point is, if size is dynamic, this is a dangerous optimisation.<p>[0] <a href="http:&#x2F;&#x2F;goo.gl&#x2F;4Ev8as" rel="nofollow">http:&#x2F;&#x2F;goo.gl&#x2F;4Ev8as</a>