Re: [algogeeks] Traverse a 2-D array of strings

2012-07-14 Thread atul anand
total number of rows for the given input is 7. so for (int i=0; i<7 ; i++) printf("%s",result[i]); On Sat, Jul 14, 2012 at 10:45 PM, Abhi wrote: > I have written a mystrtok function which takes a string and a delimiter as > argument and returns an array of tokenized strings.But i don't know how

[algogeeks] Traverse a 2-D array of strings

2012-07-14 Thread Abhi
I have written a mystrtok function which takes a string and a delimiter as argument and returns an array of tokenized strings.But i don't know how to traverse that array Here is my code:- char string[50] = "asdf.sdf.sdf.sdf.wer.sfd.df"; char delim = '.'; char **result = mystrtok( string , delim);