title: Changing the value of a string with a pointer in C
body: <p>I was trying to change the value of the string t_string by passing a pointer of the string to a function and then changing the value of that pointer in the function. </p>
  
  <p>The output I am receiving is the original string "Hello".</p>
  
  <p>Any help would be greatly appreciated :) Thanks!    </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include "string.h"
  
  void editString(char *theString);
  
  int main() {
      char t_string[] = "Hello\n";
      char *s = t_string;
      editString(s);
      printf("The string after: %s", t_string);
      return 0;
  }
  
  void editString(char *theString){
      theString = "Good Bye\n";
  }
  </code></pre>