What does this program do?
// What does this program do?
#include
using namespace std;
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;
} // end main
// What does this function do?
void mystery1( char *s1, const char *s2 )
{
while ( *s1 != '\0' )
++s1;
for ( ; *s1 = *s2; s1++, s2++ )
; // empty statement
} // end function mystery1
Enter two strings: string1 string2
string1string2
You might also like to view...
The __________ loop is ideal in situations where you always want the loop to iterate at least once.
a. for b. while c. do-while d. posttest
Display student names, their faculty advisors names, and faculty’s office location.
Use the Indo–US (IU) College database tables to design the following queries. (Use the spooling method to capture all queries and results in the CHAP7SP2.LST file)
________ is a pre-built set of fills, outlines, and effects used to create decorative text
A) Master View B) Outline View C) SmartArt D) WordArt
When you no longer need to use an RSS feed, you should ____________________ it so that you do not have unwanted messages in your account.
Fill in the blank(s) with the appropriate word(s).