selection_sort function: it should call find_largest function and swap function.

computer science

Description

void selection_sort(int *a, int n); int *find_largest(int *a, int n); void swap(int *p, int *q); selection_sort function: it should call find_largest function and swap function. find_largest function: when passed an array of length n, the function will return a pointer to the array’s largest element. The function should use pointer arithmetic – not sub-scripting - to visit array elements. In other words, eliminate the loop index variables and all use of the [] operator in the function. swap function: when passed the addresses of two variables, the function should exchange the values of the variables: swap(&i, &j); /* exchange values of i and j */

Instruction Files

Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.