title: Change value in pointer string array in C
body: <p>Is it possible to change a value in a character array initialized by a string pointer this way:</p>
  
  <pre><code>char *word;
  word = (char*) malloc(10 * sizeof(char));
  word = "Test";
  word[2] = 'w';
  
  return 0;
  </code></pre>
  
  <p>I get a segmentation fault while executing the above code.</p>