1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| #ifndef ALGORITHM_FUNCTION_H #define ALGORITHM_FUNCTION_H
void swap (int *x, int *y) { int temp;
temp = *x; *x = *y; *y = temp; }
void print_array(int array[], int array_size){ int i; for (i = 0; i < array_size; i++) { printf("%d ", array[i]); } printf("\n"); }
#endif
|