From a976bea8f5a50d807ebc68476c7ae1954e2cd119 Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 25 Apr 2024 19:13:18 +0200 Subject: [PATCH] Initialization --- cv10/program.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cv10/program.c b/cv10/program.c index f22588c..0aebb24 100644 --- a/cv10/program.c +++ b/cv10/program.c @@ -50,13 +50,13 @@ int main() { // Sort the applications alphabetically qsort(applications, i, sizeof(char *), compare_names); - printf("Prijati studenti:"); - for (j = 0; j < (count < i ? count : i); j++) { + printf("Prijati studenti:\n"); + for (j = 0; j < i; j++) { printf("%s\n", applications[j]); } if (count < i) { - printf("Neprijati studenti:"); + printf("Neprijati studenti:\n"); for (; j < i; j++) { printf("%s\n", applications[j]); }