Witam
#include <stdio.h>
#include <stdlib.h>
typedef struct student
{
char imie[20];
float srednia;
}Student;
int main()
{
printf("Podaj liczbe studnetow \n");
int n;
scanf("%d",&n);
Student c[n];
int i=0;
for(i;i<n;i++)
{
printf("Podaj imie studenta\n");
gets(c[i].imie);
printf("Podaj srednia studenta\n");
scanf("%f",&c[i].srednia);
}
return 0;
}
Dlaczego mi nie pobiera imienia ? Próbowałem z fgets i też nie działa. Proszę o pomoc.