title: Calling #define from another file
body: <p>This is my code. I have file1.c and file2.c. I want to call the MESSAGE from file2.c but I can't seem to do it. I am newbie in C so I really don't know what to do. I researched already but, I can't seem to find a specific answer. Thankyou.</p>
  
  <pre><code>#define MESSAGE "this is message!"
  
  helloworld(){
       printf("%s",MESSAGE);
       getch();
       }
  </code></pre>
  
  <hr>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;conio.h&gt;
  #include "file2.c"
  
  int main(void)
  {
    helloworld();
  }
  </code></pre>