Difference between const char*, char const*, const char const* & string storage

Viewed 16512

First of all, what's the difference between:

(1) const char*
(2) char const*
(3) const char const*

I'm fairly certain I understand this fully, but I'd like someone to give me a sentence for each, specifically, so it sticks in my head. It's one of those things that I'm fine with until someone puts me on the spot and then it gets fuzzy!

Also, how are string-literalls stored by the compiler? This isn't homework, I'm just brushing up on C for interviews in case anyone cares.

6 Answers
Related