How to do in C - array of pointers to string?
Because the string is represented as array of chars i tried to do this:(assumes every string is maximum 10 chars and the array size is 100)
One (often difficult) thing you need to wrap your head around: you can have array of pointers (here pointers to arrays of char, possibly of different length, or pointer can be NULL too). Then you can have array of arrays (here of char) that is two dimensional array, where each inner array exists (can't be NULL) and has fixed length ('\0'-terminated string can be shorter, with unused space after the 0). With strings, you usually want the first, array of pointers to arrays of char.
mainfunction. There you have exactly that for theargvparameter (char**orchar* argv[]).