Question: Given the folllowing declaration in the main() function double score[ ] = {12,23,34,45,56,67,78,42,55,78,62,19} int size = 12; double big; 1. Write a function definition for

Given the folllowing declaration in the main() function

double score[ ] = {12,23,34,45,56,67,78,42,55,78,62,19}

int size = 12;

double big;

1. Write a function definition for a function called findLarge() that is passed the score array and size and returns the largest value in reference parameter big.

I know how to start the code, but i am not sure how to do the body of the code ( for loops, if statement)

void findLarge(double a[ ], int size, double& big)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!