Change second for loop in gnome_sort.c, it's now C89-compatible

This commit is contained in:
Gabriele Bruno Franco 2019-08-10 14:17:27 +02:00
parent bbf8f1b991
commit 4956146bae
1 changed files with 2 additions and 1 deletions

View File

@ -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");
}