int main(void) { int A=0; int B=0; int C=0; int *a; int *b; int *c; printf("A : "); scanf("%d",&A); printf("B : "); scanf("%d",&B); printf("C : "); scanf("%d",&C); a=&A; b=&B; c=&C; printf("A = %d , B = %d , C = %d \n",A,B,C); degistir(a,b,c); return 0; }
// http://en.wikipedia.org/wiki/Bubble_sort void siralama(char kelimeler[][20], int uzunluk1) { int index1; int index2; int bekci = 1; for(index1 = 0; index1 < uzunluk1; index1++) { bekci = 0; for(index2 = 0; index2 < uzunluk1; index2++) { if( strcasecmp( kelimeler[index1], kelimeler[index2]) < 0) { degistir(kelimeler[index1], kelimeler[index2]); bekci = 1; } } if(bekci == 0) { break; } } }