: char *t = "hello";, t - , , , . , .
: const char s[]="hello";, s - , , const, , ( , const, ).
Using constwhen you do not want your string to be changed is good because a compilation error occurs that is better than a runtime error.
source
share