// A revision exercise for basic command line args // Lecture Week 10 Monday #define MAX 128 #include #include // Write a program to print out each command line arguments // (not including the program_name) along with their string lengths. // How would I also print the first character of each one? int main (int argc, char *argv[]){ for(int i = 1; i < argc; i++) { printf("%lu: %s\n", strlen(argv[i]), argv[i]); printf("%c\n", argv[i][0]); } return 0; }