#include int main(int argc, char *argv[]) { int i = 0; char *arg = ""; for(i = 0, arg = ""; i < argc && (arg = argv[i++]);) { printf("arg %d: %s\n", i, arg); } char *states[] = { "California", "Oregon", "Washington", "Texas" }; int num_states = 4; for(i = 0, arg = ""; i < num_states && (arg = states[i++]);) { printf("state %d: %s\n", i, arg); } return 0; }