• Advertisement
Sign in to follow this  

string vs string literals.

This topic is 1930 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am currently reading a book called "[url="http://www.amazon.com/Accelerated-C-Practical-Programming-Example/dp/020170353X/ref=sr_1_1?ie=UTF8&qid=1349588502&sr=8-1&keywords=accelerated+c%2B%2B"][color=#b22222][i][b]Accelerated C++ Practical Programming by Example[/b][/i][/color][/url]" by Andrew Koenig and Barbara E. Moo and am confused on the difference between a string and a string literal.

Here is the excerpt from what I read:

[quote]
The second new idea is that we can use + to [i][b]concatenate[/b][/i] a string and a string literal--or, for that matter, two strings (but not two string literals).
[/quote] Edited by markrodgers11

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement