title: How do you access char from another function
body: <p>So I'm currently doing it like this: </p>
  
  <pre><code>char name[100];
  
  char nama(char &amp;name)
  {
      printf("&gt;&gt; Name\t: %s\n",name);
  
      return name;
  }
  </code></pre>
  
  <p>But when I want to access them in the main function, it said that it can't be accessed. And I can't just decide the name either, because it'll be accessed again and again throughout the program, in the main and in another function.</p>