Hi Lubu
I began with C for dummies and found it very good
It comes in 2 volumes I haven't got vol 2 yet
but I like te style in which it is writtn
makes learning easier
cheers!
Thanks fo your help Lim
I picked up some good tips
I was as you suspected trying to create an array
holding 20 names *name[21]
I am just learning about pointers and was 'trying' to use pointers to manipulate the input and output
also I tried to crate an array names[21][30]
and set a pointer...
having problems with output using pointers
void main()
{
int people,
i,j;
char *name[21],
**n_ptr=name;
printf("\nEnter the number of people > ");
scanf("%d",&people);
for(i=0;i<people;i++)
strcpy(*n_ptr,NULL);
is this required...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.