About 3,930 results
Open links in new tab
  1. qsort() Function in C - GeeksforGeeks

    Jul 23, 2025 · The qsort () in C is a library function used to sort an array of items in ascending order or descending order. It stands for "quick sort," as it implements the quicksort algorithm for sorting which …

  2. C stdlib qsort () Function - W3Schools

    Definition and Usage The qsort() function sorts the elements in an array from least to greatest. The qsort() function is defined in the <stdlib.h> header file.

  3. qsort, qsort_s - cppreference.com

    Unlike other bounds-checked functions, qsort_s does not treat arrays of zero size as a runtime constraint violation and instead returns successfully without altering the array (the other function that …

  4. qsort () Function - C stdlib.h - Syntax, Parameters, Examples

    The qsort() function in C is a versatile sorting utility that rearranges elements in an array in place using a user-defined comparison function. It is designed to work with any data type by allowing custom …

  5. qsort (3) - Linux manual page - man7.org

    To compare C strings, the comparison function can call strcmp (3), as shown in the example below. For one example of use, see the example under bsearch (3).

  6. qsort - Wikipedia

    qsort is a C standard library function that implements a sorting algorithm for arrays of arbitrary objects according to a user-provided comparison function.

  7. qsort | Microsoft Learn

    Aug 3, 2023 · The qsort function implements a quick-sort algorithm to sort an array of number elements, each of width bytes. The argument base is a pointer to the base of the array to be sorted. qsort …

  8. qsort () in C - Tpoint Tech

    Mar 17, 2025 · qsort () is a pre-defined standard function in the C library. We can use this function to sort an array in ascending or descending order.

  9. qsort () function - C library

    The C stdlib library qsort () function is a sorting function, which is used to sort an array either in ascending or descending order. It is known as quick sort. This function is based on the quick sort …

  10. qsort () and bsearch () Functions in C - Sanfoundry

    Learn how to use C standard library functions qsort () and bsearch () with examples, explanations, and practical tips for efficient sorting and searching.