Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (20 sloc) 333 Bytes
#include <stdio.h>
int main(int argc, char *argv[])
{
int i = 0;
while(i < argc) {
printf("arg %d: %s\n", i, argv[i]);
i++;
}
char *states[] = {
"wut","waaa",
"foo","bar"
};
int num_states = 4;
i = 0;
while(i < num_states) {
printf("state %d: %s\n", i, states[i]);
i++;
}
return 0;
}