Question: Look at your solution of exercise 7. Is there any way that input could get the array to overflow; that is, is there any way
Look at your solution of exercise 7. Is there any way that input could get the array to overflow; that is, is there any way you could enter more characters than you allocated space for (a serious error)? Does anything reasonable happen if you try to enter more characters than you allocated?
Data from Exercise 7
Write a program that reads characters from cin into an array that you allocate on the free store. Read individual characters until an exclamation mark (!) is entered. Do not use a std::string. Do not worry about memory exhaustion.
Step by Step Solution
3.53 Rating (160 Votes )
There are 3 Steps involved in it
Look at your solution of exercise 7 Is there any way that input could get the array to overflow that is is there any way you could enter more characte... View full answer
Get step-by-step solutions from verified subject matter experts
