Sign in to follow this  
markrodgers11

string vs string literals.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this