Complete the code to describe what saturating arithmetic does.
Saturating arithmetic prevents values from exceeding [1] or [2] limits.
Saturating arithmetic stops values from going beyond the maximum or minimum allowed range.
Complete the sentence to explain the main benefit of saturating arithmetic.
It helps avoid [1] caused by overflow in calculations.
Saturating arithmetic prevents errors that happen when numbers overflow their allowed range.
Fix the error in the statement about saturating arithmetic.
Saturating arithmetic [1] values wrap around when exceeding limits.Saturating arithmetic prevents values from wrapping around by capping them at limits.
Fill both blanks to complete the description of saturating arithmetic behavior.
When a calculation exceeds the [1] limit, the result is set to the [2] value.
If a value goes above the maximum limit, saturating arithmetic sets it to that maximum value.
Fill all three blanks to complete the example of saturating addition.
result = [1] + [2] if [3] + [2] <= MAX else MAX
This example adds two values but caps the result at MAX if the sum is too large.
