Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Programming in C not C++ /* What does this program do? */#include void mystery1(

ID: 3820749 • Letter: P

Question

Programming in C not C++

/* What does this program do? */#include void mystery1(char *s1, 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", string1, string2); mystery1(string1, string2); printf("%s ", string1); return 0;//indicate successful termination.//end main//What does this function do? void mystery1(char *s1, const char *s2) {while (*s1 != '') s1++; for (; *s1 = *s2; s1++, s2++) {;//empty statement.}//end for//end function mystery1.

Explanation / Answer

this program will concatinate the 2 strings

ex:

string1= sagar

string2= rohit

output= sagarrohit