title: Segmentation fault when modifying a string
body: <p>I am getting segmentation fault error in this code, but don't know why?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void)
  {
      char *ptr = "Linux";
      *ptr = 'T';
  
      printf("\n [%s] \n", ptr);
  
      return 0;
  }
  </code></pre>