A student encounters errors with a function designed to return the Index position of the smallest value in an array of d
Posted: Sat May 14, 2022 8:14 pm
A student encounters errors with a function designed to return the Index position of the smallest value in an array of double values. Read the function definition used for this purpose and identity the error(s). double findMin (double art, ints) inti IntIndexOf Min = 0; for (11 : ++) Kantar findexOlin Index Min > retum indexOM > O a. Even though the array is type double, the returned index position data type should have been integer b. The comparison of values is backwards, saving the Index position of the larger rather than the smaller value. The parameter list is incorrectly specified d.bandc ca and