GATE 2014 CS (CS2) – Question 28
Which is NOT performed during compilation?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) Dynamic memory allocation
Explanation
Compilation translates the program; it does not run it. Type checking, symbol-table management and inline expansion are all carried out by the compiler at compile time.
Dynamic memory allocation (for example a runtime malloc call) happens while the program executes. The compiler only emits the code that will request the memory later.
Therefore **dynamic memory allocation, A**, is the operation not performed during compilation.