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 f
const char* means pointer to constant characterchar const* means exactly the same as 1. (you probably were going for char* const, which is constant pointer to a character.)const char const* is invalid as Johannes already pointed outString literals are usually stored in a read-only data segment of your executable, but this is by no means guaranteed.