Question: Explain what this program does. Also, explain how the mystery 1() function works./* What does this program do? */#include void mysteryl(char *sl, const char *s2);//prototype

 Explain what this program does. Also, explain how the mystery 1()

Explain what this program does. Also, explain how the mystery 1() function works./* What does this program do? */#include void mysteryl(char *sl, const char *s2);//prototype int main(void) {char stringl[80];//create char array char string2[80];//create char array printf("Enter two strings::"); scanf("%79s %79s", stringl, string2); mysteryl(stringl, string2); printf("%s ", stringl); return 0;//indicate successful termination.}//end main//What does this function do? void mysteryl(char *sl, const char *s2) {while (*sl != '\0') sl++; for (; *sl = *s2; sl++, s2++) {;//empty statement.}//end for//end function mysteryl

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 Databases Questions!