[previous_group] [previous] [up] * [next_group]

Arrays of Strings

We have seen we can think of the 2D array data structure as: We can use this to replace the id numbers in our stock data base with the 3 letter name used on the stock exchange. We can declare such an array as:
     char id[MAX_STOCKS][MAX_NAME];

and declare the entire data base as in stock12.c.

The input data file can now be as shown in stock12.dat.

When we make this modification, we need only change the I/O utilities as in io_utils12.c.

[up] to Overview.