hi, first i want to say hello to every body ...

then .... can anyone explain how this program works..

Code:
#include <iostream.h>

void mystery1(char *,const char *);

int main ()
{
	char string1[80];
	char string2[80];

	cout<<"enter two string :";
	cin>>string1>>string2;
	mystery1(string1,string2);
	cout<<string1<<endl;

	return 0;

}

void mystery1(char *s1, const char *s2)
{
	while(*s1 != '\0')
		++s1;

	for(;*s1=*s2;s1++,s2++)
		;
}
thanx ....