KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can I define an array of string in c then iterate with a loop through the items in the array? So far I have 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 * }
Tags (comma-separated)
Save Edits
Cancel