constant keyword question

I was recently reading about manipulating strings, and it was highly recommended to use the constant keyword with c-style strings...what I want to know is not so much what const does(although that would be ok) but more what will happen if I don't use const..
Last edited on
> use the constant keyword with c-style strings

Use the constant keyword with string literals


> what will happen if I don't use const

The code will not compile (with a conforming compiler).

http://coliru.stacked-crooked.com/a/d605be1f772b612d
Topic archived. No new replies allowed.