What does this program do?

```
// What does this program do?
#include
using namespace std;

bool mystery3( const char *, const char * ); // prototype

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

cout << "Enter two strings: ";
cin >> string1 >> string2;
cout << "The result is " << mystery3( string1, string2 ) << endl;
} // end main

// What does this function do?
bool mystery3( const char *s1, const char *s2 )
{
for ( ; *s1 != '\0' && *s2 != '\0'; s1++, s2++ )

if ( *s1 != *s2 )
return false;

return true;
} // end function mystery3
```


Function mystery3 compares two strings for equality.

Computer Science & Information Technology

You might also like to view...

Which of the following statements is true about MPLS:

a. MPLS can be used to transport voice and data, and its traffic should be protected with encryption. b. MPLS can be used to transport voice and data, and its traffic does not need to be protected with encryption. c. MPLS is used for data only, and its traffic should be protected with encryption. d. MPLS is used for voice only, and its traffic should be protected with encryption.

Computer Science & Information Technology

A method of applying CSS to an HTML page that sets the styles directly in the HTML document, typically in the page’s head.

a. External style sheet b. Embedded style sheet c. Media-specific style sheets d. Persistent styles

Computer Science & Information Technology

The ____ tools are the most basic tools available for making selections in Photoshop.

A. Graphic Selection B. Lasso C. Marquee D. Select

Computer Science & Information Technology

Match each term with the correct statement below.

A. Provides a naming system for shared resources on a UNIX/Linux network B. A path in the Universal Naming Convention (UNC) format C. Control access to an object, such as a folder or file D. An ACL that is configured by a server administrator or owner of an object E. An interface between the user and the operating system F. A main container (top-level folder) in Active Directory that holds links to shared folders that can be accessed from the root G. Contains information used to audit the access to an object H. A program that reads lines of program code in a source file and converts the code into machine-language instructions the computer can execute I. Contain program code that can be called and run by Windows applications

Computer Science & Information Technology