Initialization

This commit is contained in:
Kozar 2024-04-22 18:23:56 +02:00
parent 3705b17f77
commit 2dd1308057

View File

@ -46,10 +46,12 @@ int main() {
if (num_accepted < max_students && num_accepted < num_students) {
printf("Neprijati studenti:");
for (int i = num_accepted; i < max_students; i++) {
printf("%s", names[i]);
for (int i = 0; i < max_students; i++) {
if (names[i][0] == '\0') {
printf("%s", names[i]);
}
}
}
return 0;
}