function to swap two elements
| 14 | |
| 15 | // function to swap two elements |
| 16 | void swap(int *x, int *y) { |
| 17 | int temp = *x; |
| 18 | *x = *y; |
| 19 | *y = temp; |
| 20 | } |
| 21 | |
| 22 | // function to print array |
| 23 | void printArr(int arr[], int n) { |
no outgoing calls
no test coverage detected