Question
done in c++ and must include source and header files. 1.Dynamically create an array of 10 strings, fill the array with values read from the
done in c++ and must include source and header files.
1.Dynamically create an array of 10 strings, fill the array with values read from the console, and output the values in reverse order. As input, use the following sequence of words dog, cat, horse, mouse, chicken, monkey, hawk, cow, sheep, pig. You should not use the subscript operator to do this exercise.
2.To contrast this program with one using static array allocation, do the same thing, but this time simply create the array as string arr[10]. See how the two programs are different. Again, you should not use the subscript operator to do this exercise.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started