这个是代码 ,这代码有什么错误吗?
#include <stdio.h>
int mystery3(const char *, const char *);
void main()
{
char string1[80], string2[80];
printf("Enter two strings:");
scanf("%s%s", string1, string2);
printf("The result is %d\n", mystery3(string1, string2));
return ;
}
int mystery3(const char *s1, const char *s2)
{
for(; *s != '\0' && *s2 != '\0'; s1++, s2++) {
if(*s1 != *s2)
return 0;
}
return 1;
}