HI just a quickie
whats wrong with the gets function here
viod main()
{
int i,j, persons = 10;
char name[11],
*c_ptr;
c_ptr = name;
for(i=0;i<persons;i++)
{
printf("\nEnter name for person %d",i+1);
gets(c_ptr);
}
// it wont let me input a name for person 1
for(j=0;j<persons;j++)
puts(c_ptr);
}
whats wrong with the gets function here
viod main()
{
int i,j, persons = 10;
char name[11],
*c_ptr;
c_ptr = name;
for(i=0;i<persons;i++)
{
printf("\nEnter name for person %d",i+1);
gets(c_ptr);
}
// it wont let me input a name for person 1
for(j=0;j<persons;j++)
puts(c_ptr);
}