✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Consider the following code snippet:
n=10;for (i = 0; i <= n+1; i++) { a[i] = 2*i;
n=n-rand();}Which of the following is the most relevant and optimized technique(s) that can be applied to improve the above code?