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

  1. A.

    Constant folding

  2. B.

    Constant propagation

  3. C.

    Dead code elimination

  4. 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…