Question about strings n chars
I have just revived my interest in c and I have the following problem:
I am trying to store an array filled with strings:
Code:
arraystrings[]={" 5 ms", " 10ms", "15 ms"};
Then I need to select one of the array string elements :
Now I need to extract the individual characters out of the selected string:
Code:
char array[0][0]=' '
char array[0][1]='5'
char array[0][2]=' '
char array[0][3]='m'
char array[0][4]='s'
Can someone explain to me how to do this? How do you initalize the array and then select a string element the select a character. An example would be great.
I am trying to save a large string array and then output the characters for the chosen string element on an LCD display one by one but I haven't crossed this bridge yet
Thanks
Chris