GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2021 set2

GATE 2021 set2 · CS · MCQ · 1 mark · Compiler Design › Semantic Analysis

GATE 2021 set2 Computer Science and Information Technology question: Consider the following ANSI C program: code Which one of the following phases in a…

Consider the following ANSI C program:

int main() {
    Integer x;
    return 0;
}

Which one of the following phases in a seven-phase C compiler will throw an error?

  1. (A)

    Lexical analyzer

  2. (B)

    Syntax analyzer

  3. (C)

    Semantic analyzer

  4. (D)

    Machine dependent optimizer

Show answer

Official answer: C

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion