Question: b. Write a function named 'isSorted' which takes an array of integers named 'arr' and an Integer representing its size; then it returns true if
b. Write a function named 'isSorted' which takes an array of integers named 'arr' and an Integer representing its size; then it returns true if the elements of the array are sorted in ascending order and false otherwise. (10 pts) c Write a main function that asks the user to fill an array of 10 integers and then: (5 pts) 1. It calls the function 'range' with the array filled by the user and displays the range ii. It calls the function 'isSorted' with the array filled by the user and displays "the array is sorted' or 'the array is not sorted'. of the array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
