String-terminating null character write a program to show


Question: (String-Terminating Null Character) Write a program to show that the getline and three argument get istream member functions both end the input string with a string-terminating null character. Also, show that get leaves the delimiter character on the input stream, whereas getline extracts the delimiter character and discards it. What happens to the unread characters in the stream?

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: String-terminating null character write a program to show
Reference No:- TGS02405880

Now Priced at $10 (50% Discount)

Recommended (98%)

Rated (4.3/5)