Question: A correctly written comparison function has which of the following charactersistics ( select all that apply ) ? Group of answer choices It returns a

A correctly written comparison function has which of the following charactersistics (select all that apply)?
Group of answer choices
It returns a number greater than zero if the first parameter is greater(i.e., should be placed after) the second.
It returns -1 if the two parameters are not equal.
It returns false if the two parameters are not equal.
It returns zero if the two parameters are equal.

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 Programming Questions!