Code:
// states.h
// header file for the states program
// data structure declartion and initialization
// initialize the state data in the array of the state structure.
struct state_st{
char *code; //postal code for state name
char *name; // state name
char *capital; // capital city
unsigned int zip; // zip code
unsigned int population; // in thousands
unsigned int area; // square miles
} States[] = {
{ "CO", "Colorado", "Denver", 80012, 2208, 104247 },
{ "MA", "Massachusetts", "Boston", 02108, 5689, 8257 },
{ "MD", "Maryland", "Annapolis", 21401, 3923, 10577 },
{ "RI", "Road Island", "Providence", 02901, 950, 1214 },
{ "NJ", "New Jersey", "Trenton", 08801, 8938, 8729 },
{"PA", "Pennsylvania", "Harrisgurg", 17101, 1279, 44742 },
{ "TX", "Taxas", "Austin", 73301, 2696, 268820 },
{ "AK", "Alaska", "Juneau", 99801, 7367 , 663384 },
{ "CA", "California", "Sacramento", 94203, 3880, 163694 },
{ "AL", "Alabama", "Montgomery", 36101, 4849, 52419 },
{ "AZ", "Arizona", "Phoenix",85001, 6731, 113998 }
};
#define NSTATES sizeof States / sizeof (struct state_st)