Initialization

This commit is contained in:
Kozar 2024-04-25 21:13:54 +02:00
parent bb0777b808
commit c41cfff2f5

View File

@ -51,14 +51,14 @@ int main() {
// Sort the applications alphabetically
qsort(applications, accepted_count, sizeof(char *), compare_names);
printf("Prijati studenti:\n");
printf("Prijati studenti:");
for (j = 0; j < count && j < accepted_count; j++) {
printf("%s\n", applications[j]);
}
if (count > accepted_count) {
printf("Neprijati studenti:\n");
printf("Neprijati studenti:");
for (j = accepted_count; j < i; j++) {
printf("%s\n", applications[j]);
}