Question: This function will take each integer as if it were a score and award it to the hawks team or the braves team according
This function will take each integer as if it were a score and award it to the hawks team or the braves team according to the rules: - if it is divisible by 3 it should be awarded to the hawks - if it is divisible by 5 it should be awarded to the braves - if it is divisible by both 3 and 5 it should be awarded to both teams - otherwise, ignore it. Place the two results in the two pass-by-reference variables. Write the function that takes an array of n integers. int scoreTotal (const int *arr, int n, int *hawksTotal, int *bravesTotal);
Step by Step Solution
3.42 Rating (146 Votes )
There are 3 Steps involved in it
c int scoreTotalconst int arr int n int hawksTotal int bravesTotal 1 Parameters arr Pointer to an ar... View full answer
Get step-by-step solutions from verified subject matter experts
