Content deleted Content added
Replaced 'for' with 'while' for easier splitting of condition and initialization. rewrote the optimized code using do {} while loop to account for possible side effects in evaluating the loop condition. See https://cs.stackexchange.com/a/108620/104558 for details and discussion |
→Example: avoid "we"; "easily" is no longer true (an easier example would indeed be preferrable!); why not declare a write-once variable as "const"? |
||
Line 4:
==Example==
<source lang="C">
Line 21:
if (i < n) {
x = y + z;
int const t1 = x * x;
do {
a[i] = 6 * i + t1;
|