mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
Merge pull request #252 from gbrunofranco/gnome_sort
Fix for loop in gnome_sort to make it C89-compatible
This commit is contained in:
commit
850c001a99
@ -23,7 +23,8 @@ void sort(int *numbers, int size)
|
||||
|
||||
void display(int *array, int n)
|
||||
{
|
||||
for (int i = 0; i < n; ++i)
|
||||
int i;
|
||||
for (i = 0; i < n; ++i)
|
||||
printf("%d ", array[i]);
|
||||
printf("\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user