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...

Which of the following is TRUE about flash memory?

A) It is faster than RAM. B) It can be plugged into a USB port. C) It has multiple moving parts. D) It requires constant power to store data.

Computer Science & Information Technology

Assistive technologies are configured using what utility on Fedora 20 in GNOME??

A. ?Universal Access B. ?Accessibility C. ?Usability D. ?Access Helper

Computer Science & Information Technology