Why does this:
const char cwords = "These are even more words";
result in an **error**: cannot initialize a variable of type 'const char' with an lvalue of type 'const char [22]'
but this:
const char * cwordsp = "These are more words";
Work? (Not result in an error)
It seems like the pointer cwordsp
should need to point to the memory address of that c string. Am I wrong?