/*L*/

/*[‚bŒ¾Œê]ƒTƒ“ƒvƒ‹ƒvƒƒOƒ‰ƒ€W@Šî–{‘I‘ð–@ƒ\[ƒX‚Q*/

/*–ÚŽŸ‚Ö–ß‚é*/

#include <stdio.h> void my_sort(int *, int); int main(){ int ary[10] = {1,5,7,2,9,8,6,4,3,0}; int i; my_sort(ary, sizeof(ary) / sizeof(int)); for (i = 0; i < 10; i++){ printf("%d ", ary[i]); } printf("\n"); return 0; } void my_sort(int *ary,int size){ int i, j, tmp; for (i = 0; i < size - 1; i++){ for (j = i + 1; j < size; j++){ if (*(ary + i) > *(ary + j)){ tmp = *(ary + i); *(ary + i) = *(ary + j); *(ary + j) = tmp; } } } }

/*ƒy[ƒW‚̐擪‚Ö*/

/*–ÚŽŸ‚Ö–ß‚é*/

/*HOME*/

/*Copyright 2016 K.N/petitetech.com*/

/*L*/