Write a program for selection sort


Problem:

Question 1: The selection sort routine in this course is used to sort an array containing the following values. Show the array contents after each pass of the sort routine.

8 6 9 5 2 7

Question 2: Write a function that will store the odd numbers (1, 3, 5, etc) into an array. The array and its size are passed in. The function prototype is shown below.

void oddArray (int values [], int size);

Show the code, demonstrate it works properly and describe what it is doing.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program for selection sort
Reference No:- TGS0891479

Expected delivery within 24 Hours