From 60e9f192200dfd7f1a332e9952af6d0145f0bdb6 Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 25 Apr 2024 19:55:32 +0200 Subject: [PATCH] Initialization --- cv10/program.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cv10/program.c b/cv10/program.c index 7ec603f..7bc56c8 100644 --- a/cv10/program.c +++ b/cv10/program.c @@ -51,8 +51,10 @@ int main() { qsort(applications, i, sizeof(char *), compare_names); printf("Prijati studenti:"); - for (j = 0; j < i; j++) { + int j = 0; + while (j < i) { printf("%s\n", applications[j]); + j++; } if (count < i) {