Initialization

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

View File

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