Computer Sciences > GATE 2021 SET-2 > C
Consider the following ANSI C code segment:
Assume that the variable y points to a struct (allocated on the heap) containing two fields f1 and f2, and the local variables x, y, z, p, q, and i are allotted registers. Common sub-expression elimination (CSE) optimization is applied on the code. The number of addition and dereference operations (of the form y->f1 or y->f2) in the optimized code, respectively, are:

Correct : d
Similar Questions
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 erro...
Consider the following ANSI C program.
What is the output of the above program?
Consider the following ANSI C function:
The value returned by SomeFunction(15, 255) is _______.
Total Unique Visitors
Loading......