Question: 1 . 1 3 Lab: Insertion Sort ( find errors ) The following program is a test driver for the Insertion Sort function: It should

1.13 Lab: Insertion Sort (find errors)
The following program is a test driver for the Insertion Sort function: It should sort an array of doubles in descending order, but and it has some errors (syntax and logical)
Find and fix them as shown below:
// Function declaration
void insertion Sort( double ary, int size)
mark the errors
comment the line
write the correction below
Eg.
// Function declaration
// void insertion Sort( double ary, int size)
// Error#1: missing ;
// Error#2: missing []
// Error#3: bad function name - it contains a space
void insertionSort( double ary[], int size);
Hint: read all comments carefully!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!