what function does the compiler perform when it first reaches the #include statement in a C program
<p>I have come across this question while preparing for the interview:</p>

<blockquote>
  <p>What function does the compiler perform when it first reaches the
  <code>#include</code> statement in a C program?</p>
</blockquote>

<p>I Googled it and as far as I could understand (If I am not wrong here) is that it includes all the macros or definitions that are defined in the <code>#include filename</code> into the source code at that point in the program. </p>

<p>Is this correct answer?  And is that all the compiler does for the <code>#include</code> statement?</p>