title: Strong weak symbol -> double to char array
body: <p>I am trying to learn more about linking, more specifically how strong symbols override weak symbols if they have the same name. I saw an example but there was no answer and I have been really stuck on it.</p>
  
  <p>file1.c </p>
  
  <pre><code>char a[5];
  
  int main() { printf("%s", a); }
  </code></pre>
  
  <p>file2.c</p>
  
  <pre><code>double a = ???????;
  </code></pre>
  
  <p>how can I set a in file2.c so that the linker interprets it as a char array and outputs "hello" when these two files are compiled and executed?</p>