Consider the following C program. b = c * d; e = c + 1; if (e < 10) { t1 = 2 *…
2025
Consider the following C program.
b = c * d;
e = c + 1;
if (e < 10)
{
t1 = 2 * d;
}
else
{
t1 = e / 2;
}
Answer: C. Dead code elimination
- A.
Constant folding
- B.
Constant propagation
- C.
Dead code elimination
- D.
None of the above
Attempted by 100 students.
Show answer & explanation
Correct answer: C
Explore the full course: Mppsc Assistant Professor Computer Science Paper 2
Loading lesson…