need some help with this asap please! coding in C Function 2: Returns an integer Named F2 Takes in an integer array, and
Posted: Thu Jul 14, 2022 2:17 pm
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
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