UGC NET CS 2019Theory of Computation and Compilers › Code Generation and Code OptimizationVerified
UGC NET CS 2019 PYQ: Replacing the expression $4\ast 2\cdot 14$ by $8 \cdot 56$ is known as
Replacing the expression $4\ast 2\cdot 14$ by $8 \cdot 56$ is known as
- Aconstant foldingCorrect answer
- Binduction variable
- Cstrength reduction
- Dcode reduction
Answer
(A) constant folding
Approach
Recognise compile-time evaluation of an expression made only of constants.
Reviewed by UGC IQ Editorial Team.