Creating and using an array of strings
Sometimes, we need to create a table of related string values. This table, in one form or another, is often called a lookup table. Once we construct this table, we can then look up string values based on an index in the table. To declare a one-dimensional lookup table for the days of the week, where the array index is equal to the day of the week, we could make the following declaration:
char* weekdays[] = { "Sunday" ,
"Monday" ,
"Tuesday" ,
"Wednesday" ,
&...