In C, at what time is a function allocated and where in memory does it go?
Is the memory for a function allocated when the program is compiled first or is it allocat
The memory for C functions is always allocated from the code segment at the time the functions are loaded into memory. If a function belongs to a dynamically linked library, the program may load and unload it at arbitrary times.