Which of the following is the function of the semantic analysis phase of compilation process?
🎥 Video solution / Text Solution of this question is given below:
Compiler phases:
Lexical analysis → Tokenization
Syntax analysis → Parsing
Semantic analysis → Type checking, type conversion, scope checking
Optimization → Loop optimization, data flow analysis
Thus type conversion belongs to semantic analysis.