Search:

Type: Posts; User: c99tutorial

Search: Search took 0.02 seconds.

  1. Replies
    17
    Views
    4,046

    Oops, I mistyped it. Ok, it should match the...

    Oops, I mistyped it. Ok, it should match the original one submitted. With data[j] and data[j+1] being swapped. The idea I was making is that you get rid of the "C programming language stuff" from the...
  2. Replies
    17
    Views
    4,046

    That is a sorting algorithm. To see how it works,...

    That is a sorting algorithm. To see how it works, write it out in terms of "pseudocode" and then try it out with pencil and paper



    for i = 0...length-1
    for j = 0...length-1-i
    if...
  3. Replies
    17
    Views
    4,046

    The standard way is qsort. If there is not a...

    The standard way is qsort. If there is not a reason to implement your own sorting algorithm, it's best to use that.

    The algorithm used by qsort is not specified, by the way, but it's most likely...
Results 1 to 3 of 3