<p><pre><code>    int arr[5];
    int i = 0;
    while (shouldIKeepGoing() &amp;&amp; i &lt; 5) arr[i++] = getAThing();
</code></pre>
If you use ++i there you&#x27;ll skip 0 and overflow the array. This is what the postfix form is for, if you value terseness.<p>Edit: To clarify, I&#x27;m not necessarily saying you don&#x27;t know that&#x27;s what it&#x27;s for, but this is a pattern I see pretty frequently in the wild so I&#x27;m just throwing it out there with an explanation of why people find value in it.