Solved

To Sort an Array of Objects, You Need to Define

Question 15

Multiple Choice

To sort an array of objects, you need to define a comparison function. The comparison function:


A) uses lexicographical ordering to perform the sort operation.
B) uses standard numerical ordering to perform the sort operation.
C) receives two elements from the array and returns a negative number, zero, or a positive number.
D) receives two elements from the array and returns true if the two elements should be swapped.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions