Question: Please solve it correctly if wrong i will dislike 3. (4 points) Consider the following C++ program. Suppose when the program is run, the user

Please solve it correctly if wrong i will dislike

Please solve it correctly if wrong i will dislike 3. (4 points)

3. (4 points) Consider the following C++ program. Suppose when the program is run, the user enters This is my first C++ program. when prompted to enter a string. Trace the code and determine what values will be stored in the variables myString1, myCharl, myChar2, and myString2 when the program hits the return 0; statement, i.e., before it finishes executing. #include #include using namespace std; int main( ) string myStringl, myString2; char myCharl, myChar2; cout > myString1; cin. get (myChar1); cin >> myChar2; getline(cin, myString2) ; return 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!