C sorting ints

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • murr4
    New Member
    • Oct 2006
    • 1

    #1

    C sorting ints

    Is there an easy op that can be used to sort a set of ints from greatest to least or vice versa in C?
  • arne
    Recognized Expert Contributor
    • Oct 2006
    • 315

    #2
    Originally posted by murr4
    Is there an easy op that can be used to sort a set of ints from greatest to least or vice versa in C?
    Yes, there is. The function is called qsort(). Include stdlib.h in order to use it.

    Comment

    Working...