Question: Provide the reasons for the program statement illustrated below. (a) Figure 1 shows a program statement which functions to find the largest element in an

Provide the reasons for the program statement illustrated below. (a) Figure 1 shows a program statement which functions to find the largest element in an array. State why "largest" and "" should not be initialized with zero. (2 marks) double largest = 0; for (int 0; i largest) { largest = values[i]; } } Figure 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
