Skip to content

Commit

Permalink
selection-sort: int *arr => int arr[]
Browse files Browse the repository at this point in the history
  • Loading branch information
hengxin committed Nov 15, 2024
1 parent 71afa54 commit 377ab54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/7-pointers-arrays/selection-sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 377ab54

Please sign in to comment.