# include <iostream>
using std: :cout;
using std: :cin;
using std: :endl;
void mystery1(char *, const char*); //prototype
int main ()
{
char string1 [80];
char string2 [80];
cout << "Enter two strings:";
cin >> string1 >> string2;
mystery1 (string1, string2);
cout << string1 << endl;
return 0;
} //end main
Why will this program not compile and execute?
using std: :cout;
using std: :cin;
using std: :endl;
void mystery1(char *, const char*); //prototype
int main ()
{
char string1 [80];
char string2 [80];
cout << "Enter two strings:";
cin >> string1 >> string2;
mystery1 (string1, string2);
cout << string1 << endl;
return 0;
} //end main
Why will this program not compile and execute?