mirror of https://github.com/TheAlgorithms/C
Change second for loop in gnome_sort.c, it's now C89-compatible
This commit is contained in:
parent
bbf8f1b991
commit
4956146bae
|
@ -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