constchar* word = "word";
Type of word is 'pointer to const char'
It is initialised to contain the address of the first character of the string literal "word"
constchar word1[5] = "word";
Type of word1 is 'array of 5 const char'
Its members are initialised with the characters in the string literal "word"
> I would like to determine the type of a string literal before it's being passed to a function.
The type of a narrow string literal (always) is 'array of n const char'
The type of "word" is 'array of 5 const char'.
A string literal has a static storage duration.