mirror of
https://github.com/TheAlgorithms/C
synced 2025-02-12 11:34:58 +03:00
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…
x
Reference in New Issue
Block a user