Question: Explain the error with this code, and correct it: Display the sum of the elements of array A. int sum, i = 1; while (i
Explain the error with this code, and correct it:
Display the sum of the elements of array A.
int sum, i = 1;
while (i > 10)
sum = sum + A[i];
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
