I have a array of strings
char ** array;
I need to pass this array to a functio n by reference
func ( char *** arr);
is that a valid way to do it??
Also I need to add new elements to this array.
when i return to main how do i find the number of strings in the array
e.g
main(){
char ** array;
func(%26amp;arr);
// How do i find the length of 'array' after the func has initialised it ???
if you guys have any suggestions please help out!!
I am new to C!!
Important C Question!!!!?
You pass a pointer to a return variable to contain the number of elements. There is no way to discover the number.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment