Initializing a char pointer C++

Viewed 36653

How is this even possible?

const char *cp = "Hello world";

I am currently reading C++ primer and i found this example (I am a very beginner).

Why is it possible to initialize a char pointer with a string? I really can't understand this example, as far as I know a pointer can only be initialized with & + the address of the object pointed OR dereferenced and THEN assigned some value.

3 Answers
Related