I am just starting to learn C, and have been reading a textbook by K.N. King about the programming language. In his chapter on Strings, he states that character arrays and character pointers are pretty much the same in terms of being passed into functions. However, they are not interchangeable, and one of the reasons behind this was that the characters in a character array can be modified, while a character pointer points to a string literal. However, earlier in his textbook he states that C stores string literals as an array of characters anyway, so would that not make the character pointers and character arrays the same?
Thank you in advance!