Intermediate Code questions

Q50

GATE CS 2021 CS-1Intermediate CodeNAT2 marks
Consider the following C code segment:
a = b + c;
e = a + 1;
d = b + c;
f = d + 1;
g = e + f;
In a compiler, this code segment is represented internally as a directed acyclic graph (DAG). The number of nodes in the DAG is ______.
Show answer without attempting

Answer: 6

Q13

GATE CS 2021 CS-2Intermediate CodeMSQ1 mark
In the context of compilers, which of the following is/are NOT an intermediate representation of the source program?
More than one option can be correct.
Show answer without attempting

Answer: D

0/20 correct0 marks

Related topics in Compiler Design