title: Can't we include .c file?
body: <p>Today I had an interview there they asked me can we include <code>.c file</code> to a source file?
  I said <code>yes</code>. Because few years back I saw the same in some project where they have include <code>.c file</code>. But just now I was trying the same.</p>
  
  <p><strong>abc.c</strong></p>
  
  <pre><code>#include&lt;stdio.h&gt;
  void abc()
  { printf("From ABC() \n"); }
  </code></pre>
  
  <p><br></p>
  
  <p><strong>main.c</strong></p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include "abc.c"
  int main()
  {   void abc();
      return 0;
  }
  </code></pre>
  
  <p>Getting an error:</p>
  
  <blockquote>
    <p><code><code>D:\Embedded\...\abc.c :- multiple definition of 'abc'</code></code></p>
  </blockquote>
  
  <p>Where is it going wrong?</p>
  
  <p>I wrote an abc.h file (the body of abc.h is <code>{ extern void abc(void); }</code>),
  and included the file in <code>abc.c</code> (commenting out <code>#include abc.c</code>). Worked fine.</p>