Talk:Algorithm Implementation/Sorting/Selection sort

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.

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