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

//what does this program do?
#include
#define SIZE 80
void mystery1(char *s1, const char *s2);//prototype
int main(void){
char string1[SIZE]; //create char array
char string2[SIZE]; //create char array
puts("Enter two strings: ");
scanf("%39s%39s", string1, string2);
mystery1(string1, string2);
printf("%s", string1);
}
//What doese this function do?
void mystery1(char *s1, const char *s2){
while (*s1!=){
++s1;
}
for(; *s1==*s2; ++s1,++s2){
; //empty statement
}
}

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!