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.
The output of the program upon execution is _______.
Consider the following ANSI C program.
The output of the program upon execution is _______.
Consider the following ANSI C program.
The output of the program upon execution is _______.
Total Unique Visitors
Loading......