I'll be obliged if someone answers my following queries regarding array of pointers:
1. Say I've a some character delimited file and I want to read each string into each element of an array of ptr. How do I dynamically change the size of the array?
2. Say the array of ptr is names: char *names [MAX]; Now say, names contains "Angkar\0". How do I access each element of names? I mean 'A', 'n' ...
3. Say I dynamically read the contents of a file (delimited by \n) into an array of pointers. How do I know the number of elements in it (i mean the # of strings read)? One thing I can think of doing is count the # of times I read \n. But are there any better methods for it?