Question: What is the purpose of constant folding in code optimization?
Options:
Correct Answer: To replace variables with their constant values
Solution:
Constant folding is used to replace variables with their constant values at compile time, reducing runtime calculations.