This commit is contained in:
Zoltán Szabó 2020-04-17 11:46:41 +02:00
parent 9e3ea964fc
commit c72cb1fcfd

View File

@ -72,7 +72,7 @@ int main(int argc, char const *argv[])
qsort(students, loaded, sizeof(char*), compare_func);
puts("Prijati studenti:");
for(int i=0; i<size; i++)
for(int i=0; i<size && i<loaded; i++)
puts(students[i]);
if(size<loaded){