The following function, although legal, is less useful than it might be. Identify and correct the limitation on this function
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:6| Question number:16
All Answers
total answers (1)
The parameter of the function should be
need an explanation for this answer? contact us directly to get an explanation for this answer`const string &s`
. So that we can pass string literals or const strings to the function.