Yes, that is a Bubble sort. Sorry for the confusion, Cfanatic.
Type: Posts; User: Adak
Yes, that is a Bubble sort. Sorry for the confusion, Cfanatic.
Your sorting algorithm, is a Substitution sort, which is very similar to a Bubble sort. Yours is lacking (as you guessed), essential changes to improve it:
for(ctr = 0; ctr < size - 1;...