Question: / / What does this program do ? #include #define SIZE 8 0 int mystery 3 ( const char * s 1 , const char

//What does this program do?
#include
#define SIZE 80
int mystery3(const char *s1, const char *s2); //prototype
int main(void){
char string1[SIZE];
char string2[SIZE];
puts("Enter two strings: ");
scanf("%79s%79s", string1, string2);
printf("The result is %d
", mystery3(string1,string2));
}
int mystery3(const char *s1, const char *s2){
int result =1;
for (; *s1!=0&& *s2!=0; ++s1,++s2){
if(*s1!=*s2){
result =0;
}
}
return result;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!