1.6k views

Which one of the following is NOT performed during compilation?

1. Dynamic memory allocation
2. Type checking
3. Symbol table management
4. Inline expansion

Dynamic means- at runtime. Dynamic memory allocation happens during the execution time and hence (A) is the answer.

edited by
0

if option D) will be macro expansion, in place of inline expansion, then ans can be any one of A) or D) .
right?

0

@srestha maam

what is the differnce between macro expansion and inline expansion

In which stage they happens ??

0
Macro is preprocessor. Macro expansion happens before even compilation started

Symbol table management is done during compilation to store and retrieve the information

Type checking is one of the checks performed during the semantic analysis of
compilation.
Inline expansion is a compiler optimization that replaces a function call by the body of
respective function.
Dynamic memory allocation is when an executing program request the operating system to
give it a block of main memory, so it is performed during the run time not during compile time.

edited
Dynamic memory allocation happens at run time only. Compiler only compiles instructions for dynamic memory allocation like malloc(), calloc().

1
2