ですから

babo(arr,num)
fflush(stdin);
printf("ソートが完了しました");
getch();

などしてもbaboから制御が返ってこないまま終了していまうんですってば