// Read in two strings from the command line arguments and state // whether the two strings are the same or not // Sasha Week 4 Lecture 8: Command Line Arguments #include // What else should we include if we want to compare two strings? #include int main (int argc, char *argv[]) { // ./compare_strings hello hello // argv[0] ./compare_strings // argv[1] hello // argv[2] hello // if argv[1] and argv[2] are the same if (strcmp(argv[1], argv[2]) == 0) { printf("The two strings are the same\n"); } else { printf("The two strings are different\n"); } return 0; }