Question: 1. Write C++ statements to do the following: a) Declare string pointer variables named strPtr1 and strPtr2. b) Allocate an anonymous string variable, and make

1. Write C++ statements to do the following: a) Declare string pointer variables named strPtr1 and strPtr2. b) Allocate an anonymous string variable, and make strPtr1 point to it. c Input a string value from the keyboard and store it in the anonymous variable of part (b). d) Display the length of the anonymous string variable of part (b). e Cause strPtr2 to point to the anonymous variable of part (b). f Declare a double pointer variable named doublePt:r g) Allow the user to enter n, the number of values to be processed; then allocate an anonymous array of n double values, and make doublePtr point to it. h) Fill the anonymous array of part (g) with n input values, entered from the keyboard. i) Deallocate the storage of the anonymous variable of part (b) j) Deallocate the anonymous array of part (g)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
