void sort(int *array,int size) { int a,b,temp; for(a=0;a array[b]) { temp=array[b]; array[b] = array[a]; array[a] = temp; } }