Question: 4 5 6 1 2 3 #include #define SIZE 80 int mystery3 (const char *s1, const char *s2); // prototype int main(void) { 7
4 5 6 1 2 3 #include #define SIZE 80 int mystery3 (const char *s1, const char *s2); // prototype int main(void) { 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 NANANSA 22 23 24 25 26 27 28 What does this program do, assuming that the user enters two strings of the same length? 29 // ex07_26.c // What does this program do? char string1[SIZE]; // create char array char string2[SIZE]; // create char array puts ("Enter two strings: "); scanf("%79s%79s", string1, string2); printf("The result is %d ", mystery3(string1, string2)); } int mystery3 (const char *sl, const char *s2) { int result = 1; for (: s1 != '\0' && *52 != '\0'; ++s1, ++52) { if (*s1 != *52) { result = 0; } } return result;
Step by Step Solution
3.45 Rating (155 Votes )
There are 3 Steps involved in it
The program defines a function called mystery3 the definition is partially shown and includes a main function which is the entry point of a C program ... View full answer
Get step-by-step solutions from verified subject matter experts
