need some help with this asap please! coding in C Function 2: Returns an integer Named F2 Takes in an integer array, and

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

need some help with this asap please! coding in C Function 2: Returns an integer Named F2 Takes in an integer array, and

Post by answerhappygod »

need some help with this asap please! coding in C
Function 2: Returns an integer Named F2 Takes in an integerarray, and integer representing the size of the array. Iteratethrough the array and if any value is less than 10, set it to 10,if any values are greater than 20, set it to 20. Return how manychanges you had to do.
Example:
Start arr = [3, 5, 10, 15, 35, 17, 2]
size = 7
End: arr [10, 10, 10, 15, 20, 17, 10]
size = 7
Function return 4
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply