ProgrammingVery hard

The same five records are sorted by key with a stable sort in descending order. What is the order of names?

  1. A. v z x y w
  2. B. v x z w y
  3. C. v x z y w
  4. D. x z v y w

Correct answer: C. v x z y w

Equal keys keep their input order even in descending order, so x is before z and y is before w.

More C Programming questions

Exams that ask this topic