Update sorting/selection_sort_recursive.c

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
This commit is contained in:
DhruvPasricha 2021-02-25 00:02:34 +05:30 committed by GitHub
parent 7b23edbfd6
commit 1c777cbe99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,7 @@ void swap(int *first, int *second)
* @brief returned the index having minimum value using recursion * @brief returned the index having minimum value using recursion
* @param arr array to be sorted * @param arr array to be sorted
* @param size size of array * @param size size of array
* @return min_index index of element having minimum value.
*/ */
int findIndex(const int *arr, const int size) int findIndex(const int *arr, const int size)
{ {