Initialization

This commit is contained in:
Kozar 2024-04-25 19:05:49 +02:00
parent 1b2674b560
commit 745c70843a

View File

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