Question: what is the objective of the following program? what will the program output if the user inputs the English name Peter? #include #include using namespace

what is the objective of the following program? what will the program output if the user inputs the English name Peter?

#include #include using namespace std; int mystery2(const char [], int); int main( { int size; char int mystery2(const char string10], int array_size) { int x; for (x = 0; x < array_size; x++) cout < 

#include #include using namespace std; int mystery2(const char [], int); int main() { int size; char string1[80]: cout < < "please enter your English name: "; cin > > string1: size = strlen(string1); cout < < mystery2 (string1, size) < < endl; return 0: }

Step by Step Solution

3.43 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The objective of the provided program is to prompt the user to ent... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!