From 377ab5440eb98039b9dcfb5b7c725192e6504d50 Mon Sep 17 00:00:00 2001 From: "hengxin(Hengfeng Wei)" Date: Fri, 15 Nov 2024 15:12:54 +0800 Subject: [PATCH] selection-sort: int *arr => int arr[] --- template/7-pointers-arrays/selection-sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/7-pointers-arrays/selection-sort.c b/template/7-pointers-arrays/selection-sort.c index 4f7a45c..9bb35f7 100644 --- a/template/7-pointers-arrays/selection-sort.c +++ b/template/7-pointers-arrays/selection-sort.c @@ -24,7 +24,7 @@ int main(void) { return 0; } -void SelectionSort(int *arr, int len) { +void SelectionSort(int arr[], int len) { for (int i = 0; i < len; i++) { int min_index = GetMinIndex(arr, i, len); Swap(arr, i, min_index);