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
need some help with this asap please! coding in C Function 2: Returns an integer Named F2 Takes in an integer array, and
-
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!