const char*
) prevents the unnecessary modifications with the pointer address in the string.///declaration
const char *str;
//we can reassign the pointer
//string will be declared somewhere in the memory and
//its address will be assigned to the "str"
str = "Hello world";
//but, we cannot modify the data
//that is pointing by the pointer
*str = 'P';//not allowed