Talk:Algorithm Implementation/Sorting/Selection sort

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search

I believe the C version of selection sort does not terminate. I checked it by compiling and running the program on an array of length 10 using the gcc compiler. Although this can easily be fixed by modifying the Java version into C code, I think it is still worth pointing out.

[edit] Java

The java example here is not selection sort, but non-smart bubble sort.