title: Function not modyfing a character array
body: <p>Im just starting to learn pointers and I'm trying to figure out why my code doesn't work. I get no compilation error yet the code doesn't what I want it to do. Why am I not passing the adress of an array? If I try to do so I get a compiilation error :(</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  void switch_name(char* name)
  
  {
       name= "testv2";
  }
  
  void main()
  {
  char *name1 = "test_name"; 
  printf("%s\n", name1);
  switch_name(name1);
  printf("%s\n", name1);
  }
  </code></pre>