Which edge case matters for division?
Practice this question from Evaluate Reverse Polish Notation - Stack evaluation Pattern Practice Quiz, with options and an explanation.
Question
Which edge case matters for division?
Option A — Correct answer
Truncate integer division toward zero
Option B
Always round up
Option C
Always return a decimal
Option D
Ignore negative values
Explanation
Integer division should truncate toward zero in the common problem definition.