Question: Given statement which is functions to figure out the largest elements in an array. Explain why largest and i should not be initialized with zero.

Given statement which is functions to figure out the largest elements in an array. Explain why "largest" and "i" should not be initialized with zero. C++
double largest = 0; for (int 0; i largest) largest = values[i]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
