Consider the following C code segment: a = b + c; e = a + 1; d = b + c; f = d…

PYQ GATE 2021

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 _____________ .

Attempted by 66 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…