title: C function memory allocation
body: <p>In C, at what time is a function allocated and where in memory does it go?</p>
  
  <p>Is the memory for a function allocated when the program is compiled first or is it allocated when the function call is seen first? Is it allocated on the stack or in a code segment?</p>