Machine-translated by Google. Questions are authored in English.
Top

Discussion

The _______ function sorts an array of objects.

  • A.bsort()
  • B.hsort()
  • C.ssort()
  • D.qsort()

Answer: D

Correct answer: qsort()

qsort() sorts an array in place, given the base address, the number of elements, the size of each, and a comparison function the caller supplies. Passing the comparison as a function pointer is what makes it work on any type at all. The other three names do not exist.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.