Multiple choice

During compilation of the C statement for(i=1;i<10;i++) The compiler converts it as detailed below: for-------keyword,
i----identifier ,
1 & 10 ---------constants or literals,
( =,<,++)------operator. Above conversion is a valid conversion. The compiler does it during which of the following analysis phases?

  1. Semantic analysis

  2. Syntax analysis

  3. Optimization analysis

  4. Lexical analysis

  5. Code generation

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

This is the first analysis done by compiler. The source code is scaned statement by statement and tokens are framed as shown in question and put into symbol table etc.