// Pantea Aria // strings - strlen - strcpy - strcmp // compare two strings #include #include #define MAX 10 int main(void) { char input1[] = "Hello"; char input2[MAX]; // strcpy input1 to input2 strcpy(input2, input1); // what is the length of input1? printf ("The length of input1 is %lu\n", strlen(input1)); // compare the strings above with strcmp // show the output printf ("strcmp(input1, input2) returns %d\n",strcmp(input1, input2)); // fgets a new input, enter "Pantea" // then strcmp with "Pantea" // is there any issue? Next Week return 0; }