определение и итерация массива строк в c

Как я могу определить массив строк в c, а затем выполнить цикл по элементам в массиве?

Пока что у меня есть

char myStrings[][10] = { "one", "two", "three", "four", "five" };
// do I need to specify the "10" maximum length?
// also does it automatically create a null ending character after the string?

int i = 0;
for( i = 0; i < ; i++)
{
// I need to pass each string to  a function which accepts
// const char *
}
11
задан user391986 25 July 2011 в 05:55
поделиться