Multiple choice

Not reachable statements due to wrongly written function calls is an error generated by which of the following phases of compiler?

  1. Syntax analysis

  2. Semantic analysis

  3. Symbol table

  4. Code optimization

  5. Intermediate code generation

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Code optimization generates errors like not reachable statements due to wrongly written function calls etc.