Your variable my_string is a pointer to a constant string.<p>char * my_string<p>It must be a
const char * my_string 
You can still assign a different string to that, as my_string is not const.<p>For my_string to be const, you&#x27;d have to use
char * const my_string<p>Now the location pointed to by my_string is writable but I cannot change the location.<p>To make it entirely unmodifiable, you&#x27;d use
const char * const my_string.<p>On the other hand, it might make more sense to use an array here.<p>const char my_string[] = &quot;hello&quot;;