Update sorting/selection_sort_recursive.c

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
DhruvPasricha 2021-02-28 23:55:33 +05:30 committed by GitHub
parent 9a1d26e22a
commit 3ceeecfab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ void swap(uint8_t *first, uint8_t *second)
* @param size size of array
* @return min_index index of element having minimum value.
*/
uint8_t findIndex(const uint8_t *arr, const uint8_t size)
uint8_t findIndex(const uint8_t *arr, const uint8_t& size)
{
if (size == 1)
{