What does this program do?

```
// Ex. 8.14: ex08_14.cpp
// What does this program do?
#include
using namespace std;

int mystery2(const char*); // prototype

int main() {
char string1[80];

cout << "Enter a string: ";
cin >> string1;
cout << mystery2(string1) << endl;
}

// What does this function do?
int mystery2(const char* s) {
unsigned int x;

for (x = 0; *s != '\0'; ++s) {
++x;
}

return x;
}
```


Enter a string: length
6

Computer Science & Information Technology

You might also like to view...

_________________ invented the World Wide Web.

a. Marc Andreessen b. Tim O’Reilly c. Tim Berners-Lee d. The Internet Architecture Board (IAB)

Computer Science & Information Technology

In OpenOffice Impress, the underlying formatting for a presentation or group of slides is called the ________ page

A) default B) slide C) master D) formatting

Computer Science & Information Technology

Match each term with the sentence for which it is the best completion.

_____1. class _____2. overloading _____3. structure type _____4. accessor _____5. constructor _____6. default constructor _____7. member _____8. constant A. A(n) _____ is a class member function that provides a mechanism for declaring and initializing class objects. B. The C++ _____ definition facility allows programmers to create a new C++ type by combining a collection of data elements and operations defined on these data. C. A member function that does not alter the values of any object data members is a(n) _____ function D. If height is a private data member of class Tree, any _____ function of the class can reference height's value just by using the name height. E. Using the same name for several different functions or operators in a single scope is called _____. F. A(n) _____ is a public member function that allows "read-only" use of a private data member. G. A(n) _____ takes no arguments. H. A _____ is a data type for a record composed of multiple components.

Computer Science & Information Technology

Principal of least privilege means that no one person can perform critical tasks

Indicate whether the statement is true or false.

Computer Science & Information Technology