I have struct:
typedef struct _client
{
char num[9];
char some[12];
} person;
and I want enter values to that strings, I have that code and in the iteration its skip for the first input and go to the second one.
why it skip from input to the num[9]
string and goes to the some[12]
?
int i;
person* arrClient = (person*)malloc(sizeof(person)*size);
for (i = 1; i <= size; i++)
{
gets(arrClient[i].num);
gets(arrClient[i].some);
}