For example I have
*line[30];
I want to allocate a string 81 characters for each pointer. How can I do that and in which way can I access the second string for example to use it in a printf?
Also what about **a, is it an equivalent?
I’m a newbie and this may be an easy question, but I’m eager to learn. Thank you very much!
Below code snippet will help you.
Use the same
forloop for accessing each line.line[1]will access second string (ie line).